diff options
Diffstat (limited to 'applets')
-rwxr-xr-x | applets/install.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/applets/install.sh b/applets/install.sh index d163a2e..2fcd2ae 100755 --- a/applets/install.sh +++ b/applets/install.sh @@ -8,12 +8,13 @@ if [ "$prefix" = "" ]; then echo "No installation directory, aborting." exit 1; fi -if [ "$2" = "--hardlinks" ]; then - linkopts="-f" -else - linkopts="-fs" -fi h=`sort busybox.links | uniq` +case "$2" in + --hardlinks) linkopts="-f";; + --symlinks) linkopts="-fs";; + "") h="";; + *) echo "Unknown install option: $2"; exit 1;; +esac rm -f $prefix/bin/busybox || exit 1 |