wok-6.x rev 2156
bash: fix sh link when removing
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Feb 05 22:30:20 2009 +0100 (2009-02-05) |
parents | e2abf498656a |
children | 2641e36fc457 |
files | bash/receipt |
line diff
1.1 --- a/bash/receipt Thu Feb 05 21:43:25 2009 +0100 1.2 +++ b/bash/receipt Thu Feb 05 22:30:20 2009 +0100 1.3 @@ -64,3 +64,12 @@ 1.4 fi 1.5 fi 1.6 } 1.7 + 1.8 +# Restore a valid sh link if needed. 1.9 +pre_remove() 1.10 +{ 1.11 + sh=`readlink /bin/sh` 1.12 + if [ ! "$sh" = "busybox" ]; then 1.13 + ln -s /bin/busybox /bin/sh 1.14 + fi 1.15 +}