wok diff bash/receipt @ rev 9651
Up: thunderbird-langpack-fr to 3.1.10.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Apr 29 01:21:18 2011 +0000 (2011-04-29) |
parents | 02bbaa9d12ba |
children | a1644dbcf632 |
line diff
1.1 --- a/bash/receipt Mon Apr 04 01:29:52 2011 +0200 1.2 +++ b/bash/receipt Fri Apr 29 01:21:18 2011 +0000 1.3 @@ -73,9 +73,11 @@ 1.4 # Restore a valid sh link if needed. 1.5 pre_remove() 1.6 { 1.7 - sh=`readlink /bin/sh` 1.8 + local root 1.9 + root=$1 1.10 + sh=`readlink $root/bin/sh` 1.11 if [ ! "$sh" = "busybox" ]; then 1.12 - rm /bin/sh && 1.13 - ln -s /bin/busybox /bin/sh 1.14 + rm $root/bin/sh && 1.15 + ln -s /bin/busybox $root/bin/sh 1.16 fi 1.17 }