better package linking

This commit is contained in:
Ian Foster 2022-09-09 19:42:57 -07:00
commit c0e7265073
2 changed files with 2 additions and 2 deletions

View file

@ -2,5 +2,5 @@
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
ln -s /usr/sbin/tailscaled /usr/sbin/tailscale
ln -fs ${IPKG_INSTROOT}/usr/sbin/tailscaled ${IPKG_INSTROOT}/usr/sbin/tailscale
default_postinst $0 $@

View file

@ -1,5 +1,5 @@
#!/bin/sh
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
rm -f /usr/sbin/tailscale
rm -f ${IPKG_INSTROOT}/usr/sbin/tailscale
default_prerm $0 $@