From 50adca9203e0274c4dc790200e8af0ce2c70536d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 14 Oct 2010 16:08:01 -0700 Subject: Restore old motd and login banner This resolves problem where changes were made but not saved and login banner files had the non-saved changes --- scripts/rl-system.init | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/rl-system.init') diff --git a/scripts/rl-system.init b/scripts/rl-system.init index 1f43e331..e3733521 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -205,6 +205,15 @@ start () { # Turn off console screen blanker setterm -blank 0 -powersave off -powerdown 0 /dev/console 2>&1 + + # Clear out login banner changes + for f in /etc/issue /etc/issue.net /etc/motd + do + if [ -f $f.old ] + then mv $f.old $f + fi + done + ## Clear out apt config file--it will be filled in by rtrmgr empty /etc/apt/sources.list } -- cgit v1.2.3