From 9e57e0cc896f95ff14d9ffe19ec675fb3f1ca87c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 3 Feb 2010 13:08:29 -0800 Subject: 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. --- etc/init.d/vyatta-ofr | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3