summaryrefslogtreecommitdiff
path: root/misc/g15daemon/doinst.sh
diff options
context:
space:
mode:
authorAlan Alberghini <414N@slacky.it>2011-09-07 23:15:17 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-09-21 19:48:31 -0300
commit5956ee581d602e2cadcc7d24fb7d9958040480d4 (patch)
tree565e4df6d456034a0c671fb3ea48b39175dfa691 /misc/g15daemon/doinst.sh
parentf640bfb8573e7cf161d8f1ac0a368cadc81eb3e5 (diff)
downloadslackbuilds-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.sh19
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