summaryrefslogtreecommitdiff
path: root/scripts/rl-system.init
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-11-02 17:13:37 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-11-02 17:17:23 -0800
commit6ddbdaeb4557c04e6ad5c86f7ced922685634851 (patch)
tree0cc2ce63c28933c3178b43f211cc6554c1381c7d /scripts/rl-system.init
parent21a8c369143564e71bf33a760082499cbf45f8dd (diff)
downloadvyatta-cfg-system-6ddbdaeb4557c04e6ad5c86f7ced922685634851.tar.gz
vyatta-cfg-system-6ddbdaeb4557c04e6ad5c86f7ced922685634851.zip
Reset PAM configuration on boot
Bug 5084 Need to remove radius (and any other) PAM customizations on reboot.
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-xscripts/rl-system.init6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init
index 3ca02ed2..2cca5d98 100755
--- a/scripts/rl-system.init
+++ b/scripts/rl-system.init
@@ -169,6 +169,11 @@ setup_ntp_config_file () {
log_failure_msg "NTP template config file doesn\'t exist"
fi
}
+
+# restore PAM back to virgin state (no radius other services)
+pam_reset () {
+ DEBIAN_FRONTEND=noninteractive pam-auth-update unix
+}
start () {
udev_rescan
@@ -182,6 +187,7 @@ start () {
sysctl -q -e -p /opt/vyatta/etc/vyatta-sysctl.conf ||
log_failure_msg "can\'t configure kernel settings"
set_ipv6_params
+ pam_reset
update_version_info
## Clear out apt config file--it will be filled in by rtrmgr