X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=debian%2Fscripts%2Finstall-binary.sh;h=b0e2966362aaf2452d58e2309c04cf4d96fea815;hb=d14dd7c393ffe3106aa639b397a1a8199c109d77;hp=0c5bf5251c14b7c6c87dae670e0155f50e27def9;hpb=4b02f288a7f4ad1aa1e4352470f7b67fe1888a9c;p=busybox-power diff --git a/debian/scripts/install-binary.sh b/debian/scripts/install-binary.sh index 0c5bf52..b0e2966 100755 --- a/debian/scripts/install-binary.sh +++ b/debian/scripts/install-binary.sh @@ -12,7 +12,7 @@ # By Dennis Groenen # GPLv3 licensed -# Version 0.4 08-02-2011 (MM-DD-YYYY) +# Version 0.41 09-10-2011 (MM-DD-YYYY) # 0.1: Initial release # 0.2: Use $EXECPWR to not have to rely on /bin/busybox' functions # Minor clean-ups and be quieter @@ -21,6 +21,7 @@ # Implement additional checks # 0.4: Add support for symlinking against busybox_root # Update email address +# 0.41: Minor fix in SYMLINK(), SUID symlinking part INSTALLDIR="/opt/busybox-power" EXECPWR="$INSTALLDIR/busybox.power" @@ -192,7 +193,7 @@ SYMLINK() { if test $SUID == 1; then if test -h $DIR/$APP # Check if the app is a symbolic link then - if test -n "`ls -l $DIR/$APP | grep busybox`" # Check if the symbolic link points to busybox + if test -n "`$EXECPWR ls -l $DIR/$APP | $EXECPWR grep busybox`" # Check if the symbolic link points to busybox then if test $VERBOSE == 1; then echo "Re-symlinking: $BUSYBOXROOT -> $DIR/$APP"; fi $EXECPWR rm $DIR/$APP