wok-next diff zsh/receipt @ rev 11742
wireshark: remove extension for desktop file
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Tue Feb 21 17:05:50 2012 -0800 (2012-02-21) |
parents | 93efe993d312 |
children | 605079172258 |
line diff
1.1 --- a/zsh/receipt Wed Oct 26 20:10:43 2011 +0000 1.2 +++ b/zsh/receipt Tue Feb 21 17:05:50 2012 -0800 1.3 @@ -70,3 +70,16 @@ 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 + local root 1.12 + root=$1 1.13 + sh=`readlink $root/bin/sh` 1.14 + if [ ! "$sh" = "busybox" ]; then 1.15 + rm $root/bin/sh && 1.16 + ln -s /bin/busybox $root/bin/sh 1.17 + fi 1.18 +} 1.19 +