diff options
author | Alan Alberghini <414N@slacky.it> | 2011-09-07 23:15:17 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-21 19:48:31 -0300 |
commit | 5956ee581d602e2cadcc7d24fb7d9958040480d4 (patch) | |
tree | 565e4df6d456034a0c671fb3ea48b39175dfa691 /misc/g15daemon/doinst.sh | |
parent | f640bfb8573e7cf161d8f1ac0a368cadc81eb3e5 (diff) | |
download | slackbuilds-5956ee581d602e2cadcc7d24fb7d9958040480d4.tar.gz |
misc/g15daemon: Patch to fix Gn keys and suspend fixes.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/g15daemon/doinst.sh')
-rw-r--r-- | misc/g15daemon/doinst.sh | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/misc/g15daemon/doinst.sh b/misc/g15daemon/doinst.sh index ec1722b4b5..de2d058715 100644 --- a/misc/g15daemon/doinst.sh +++ b/misc/g15daemon/doinst.sh @@ -11,12 +11,17 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } -# Keep same perms on rc.g15daemon.new: -if [ -e etc/rc.d/rc.g15daemon ]; then - cp -a etc/rc.d/rc.g15daemon etc/rc.d/rc.g15daemon.new.incoming - cat etc/rc.d/rc.g15daemon.new > etc/rc.d/rc.g15daemon.new.incoming - mv etc/rc.d/rc.g15daemon.new.incoming etc/rc.d/rc.g15daemon.new -fi +perms(){ -config etc/rc.d/rc.g15daemon.new + # Keep same perms on $1.new: + if [ -e "$1" ]; then + cp -a "$1" "$1".new.incoming + cat "$1".new > "$1".new.incoming + mv "$1".new.incoming "$1".new + fi + + config "$1".new +} +perms etc/rc.d/rc.g15daemon +perms etc/rc.d/rc.g15daemon.conf |