summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick J. Volkerding <volkerdi@slackware.com>2021-11-12 00:59:31 -0600
committerRobby Workman <rworkman@slackware.com>2021-11-12 01:10:10 -0600
commit88009f03fa16d64837f996669190cc69de75f7c5 (patch)
tree736ca442f8b1cf4b9db90aeef540cb8eae3c29f8
parent0748efcaa51233bf510ddd0b1e537093aac2c866 (diff)
downloadslacknetsetup-88009f03fa16d64837f996669190cc69de75f7c5.tar.xz
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 <rworkman@slackware.com>
-rw-r--r--netconfig2
1 files changed, 2 insertions, 0 deletions
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