summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-14 16:08:01 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-14 16:08:01 -0700
commit50adca9203e0274c4dc790200e8af0ce2c70536d (patch)
tree429a6e643b7de644b23299278e1fc12dec7d2121
parent3be5dcfc5be9e30c44793d2a75ff6dfffde1bdbb (diff)
downloadvyatta-cfg-system-50adca9203e0274c4dc790200e8af0ce2c70536d.tar.gz
vyatta-cfg-system-50adca9203e0274c4dc790200e8af0ce2c70536d.zip
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
-rwxr-xr-xscripts/rl-system.init9
1 files changed, 9 insertions, 0 deletions
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 >/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
}