From 5956ee581d602e2cadcc7d24fb7d9958040480d4 Mon Sep 17 00:00:00 2001 From: Alan Alberghini <414N@slacky.it> Date: Wed, 7 Sep 2011 23:15:17 -0400 Subject: misc/g15daemon: Patch to fix Gn keys and suspend fixes. Signed-off-by: dsomero --- misc/g15daemon/doinst.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'misc/g15daemon/doinst.sh') 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 -- cgit v1.2.3