summaryrefslogtreecommitdiff
path: root/etc/init.d
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-03 13:08:29 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-03 13:57:54 -0800
commit9e57e0cc896f95ff14d9ffe19ec675fb3f1ca87c (patch)
treee8409db50d4e59f44d414a75bc78e88f247c18dd /etc/init.d
parentad777874a2d24ba3c25c9e138143603d897dd868 (diff)
downloadvyatta-cfg-9e57e0cc896f95ff14d9ffe19ec675fb3f1ca87c.tar.gz
vyatta-cfg-9e57e0cc896f95ff14d9ffe19ec675fb3f1ca87c.zip
Allow disabling vyatta config on kernel boot
Bug 4604 Add grub option to allow disabling all configuration on boot. This is useful for debugging and recovery of trashed system.
Diffstat (limited to 'etc/init.d')
-rwxr-xr-xetc/init.d/vyatta-ofr3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr
index 4b9c6c9..a74a87e 100755
--- a/etc/init.d/vyatta-ofr
+++ b/etc/init.d/vyatta-ofr
@@ -30,6 +30,9 @@
. /lib/lsb/init-functions
+# Allow disabling vyatta configuration on boot
+grep -q novyatta /proc/cmdline && exit 0
+
: ${vyatta_env:=/etc/default/vyatta}
source $vyatta_env