From 88009f03fa16d64837f996669190cc69de75f7c5 Mon Sep 17 00:00:00 2001 From: "Patrick J. Volkerding" Date: Fri, 12 Nov 2021 00:59:31 -0600 Subject: netconfig: Ensure proper rc.networkmanager permissions In case rc.networkmanager was made executable by the admin or with a previous run of netconfig, we need to disable it if networkmanager wasn't selected in this netconfig run. Signed-off-by: Robby Workman --- netconfig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'netconfig') diff --git a/netconfig b/netconfig index bb11b3e..6e7635d 100644 --- a/netconfig +++ b/netconfig @@ -1071,6 +1071,8 @@ if [ "$RETVAL" = "0" ]; then write_config_files if [ "$NETWORKMANAGER" = "yes" -a -r etc/rc.d/rc.networkmanager ]; then chmod 755 etc/rc.d/rc.networkmanager + elif [ ! "$NETWORKMANAGER" = "yes" -a -x etc/rc.d/rc.networkmanager ]; then + chmod 644 etc/rc.d/rc.networkmanager fi dialog --msgbox "Settings accepted. Basic network configuration is complete." 6 40 else -- cgit v1.2.3