diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-03 13:08:29 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-03 13:57:54 -0800 |
commit | 9e57e0cc896f95ff14d9ffe19ec675fb3f1ca87c (patch) | |
tree | e8409db50d4e59f44d414a75bc78e88f247c18dd /etc | |
parent | ad777874a2d24ba3c25c9e138143603d897dd868 (diff) | |
download | vyatta-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')
-rwxr-xr-x | etc/init.d/vyatta-ofr | 3 |
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 |