Skip to content

Commit

Permalink
treewide: use IPKG_INSTROOT where neccessary
Browse files Browse the repository at this point in the history
  • Loading branch information
pktpls committed Nov 18, 2024
1 parent 9f86488 commit b4be343
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/falter-berlin-admin-keys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ endef

define Package/falter-berlin-admin-keys/postinst
#!/bin/sh
$${IPKG_INSTROOT}/tmp/falter-berlin-admin-keys/register_keys.sh
if [ -z $${IPKG_INSTROOT} ] ; then
/tmp/falter-berlin-admin-keys/register_keys.sh
fi
endef

$(eval $(call BuildPackage,falter-berlin-admin-keys))
2 changes: 2 additions & 0 deletions packages/falter-berlin-autoupdate/files/post-inst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# intended. You better shouldn't touch anything here.
# shellcheck disable=all

[ -z $IPKG_INSTROOT ] || exit 0

# if autoupdate is not present in crontab, include it.
crontab -l | grep /usr/bin/autoupdate >>/dev/null
if [ $? != 0 ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#
# All other config sections are overwritten with current settings

[ -z $IPKG_INSTROOT ] || exit 0

. /lib/functions.sh

TUNNEL_SRV='_bbb-vpn._udp.berlin.freifunk.net'
Expand Down
3 changes: 2 additions & 1 deletion packages/falter-berlin-ssid-changer/files/post-inst.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
#

[ -z $IPKG_INSTROOT ] || exit 0

# if ssid-changer is not present in crontab, include it.
crontab -l | grep ssid-changer >>/dev/null
Expand Down

0 comments on commit b4be343

Please sign in to comment.