diff options
author | Patrick J. Volkerding <volkerdi@slackware.com> | 2021-11-12 00:59:31 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2021-11-12 01:10:10 -0600 |
commit | 88009f03fa16d64837f996669190cc69de75f7c5 (patch) | |
tree | 736ca442f8b1cf4b9db90aeef540cb8eae3c29f8 | |
parent | 0748efcaa51233bf510ddd0b1e537093aac2c866 (diff) | |
download | slacknetsetup-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-- | netconfig | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |