diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-04-05 23:05:55 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-04-05 23:05:55 (GMT) |
commit | 7285402be560de434c47278d3c6889db2cffdfab (patch) | |
tree | cbd210f3eab42a96cdd4f784eb15108e66367ce4 /abs/core/poweroff-scripts/poweroff-scripts.install | |
parent | 9649ae208248fc14b44dde67d6bc7301127d9f4c (diff) | |
download | linhes_pkgbuild-7285402be560de434c47278d3c6889db2cffdfab.zip linhes_pkgbuild-7285402be560de434c47278d3c6889db2cffdfab.tar.gz linhes_pkgbuild-7285402be560de434c47278d3c6889db2cffdfab.tar.bz2 |
poweroff-scripts: return true in .install
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff-scripts.install')
-rw-r--r-- | abs/core/poweroff-scripts/poweroff-scripts.install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/abs/core/poweroff-scripts/poweroff-scripts.install b/abs/core/poweroff-scripts/poweroff-scripts.install index 5f631ed..1213e9d 100644 --- a/abs/core/poweroff-scripts/poweroff-scripts.install +++ b/abs/core/poweroff-scripts/poweroff-scripts.install @@ -10,11 +10,15 @@ pre_upgrade () { } post_install () { - files="/sbin/reboot.init /sbin/poweroff.init /usr/sbin/reboot.init /usr/sbin/poweroff.init" - for i in $files + FILES="/sbin/reboot.init + /sbin/poweroff.init + /usr/sbin/reboot.init + /usr/sbin/poweroff.init" + for i in $FILES do [ -h $i ] && rm -f $i done + true } # arg 1: the new package version |