From 4435bd3842ccfb0a803839ad7111b8ae9efa4278 Mon Sep 17 00:00:00 2001 From: "Murat D. Kadirov" Date: Wed, 12 May 2010 17:43:26 +0200 Subject: network/hostapd: Updated for version 0.5.11 --- network/hostapd/doinst.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'network/hostapd/doinst.sh') diff --git a/network/hostapd/doinst.sh b/network/hostapd/doinst.sh index 1c9c32c1c8..16bfa3f184 100644 --- a/network/hostapd/doinst.sh +++ b/network/hostapd/doinst.sh @@ -1,5 +1,3 @@ -#!/bin/sh - config() { NEW="$1" OLD="$(dirname $NEW)/$(basename $NEW .new)" @@ -13,3 +11,12 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } +# Keep same perms on rc.hostapd.new: +if [ -e etc/rc.d/rc.hostapd ]; then + cp -a etc/rc.d/rc.hostapd etc/rc.d/rc.hostapd.new.incoming + cat etc/rc.d/rc.hostapd.new > etc/rc.d/rc.hostapd.new.incoming + mv etc/rc.d/rc.hostapd.new.incoming etc/rc.d/rc.hostapd.new +fi + +config etc/rc.d/rc.hostapd.new + -- cgit v1.2.3