summaryrefslogtreecommitdiff
path: root/scripts/install/install-functions
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-03-09 11:06:22 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-03-09 11:06:22 -0800
commit4ab3e62397765f48eca5823bca5fbe5335177c78 (patch)
treefc67a36825d6fb5837bb10aca21d447e3257d034 /scripts/install/install-functions
parent2dab8bb6de2faefd3a9289647a150d04116d4500 (diff)
downloadvyatta-cfg-quagga-4ab3e62397765f48eca5823bca5fbe5335177c78.tar.gz
vyatta-cfg-quagga-4ab3e62397765f48eca5823bca5fbe5335177c78.zip
Bugfix 5424: Allow image with same version to be added to disk-based install
Diffstat (limited to 'scripts/install/install-functions')
-rwxr-xr-xscripts/install/install-functions12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/install/install-functions b/scripts/install/install-functions
index d88df618..07f385fa 100755
--- a/scripts/install/install-functions
+++ b/scripts/install/install-functions
@@ -254,6 +254,18 @@ change_password() {
set_encrypted_password "$user" "$epwd" "$config"
}
+# returns true if it's a disk-based boot
+is_disk_based_boot()
+{
+ islive=`grep boot=live /proc/cmdline`
+ if [ -z "$islive" ]; then
+ # Return value 0 is "true" is shell
+ return 0
+ else
+ return 1
+ fi
+}
+
# returns true if it's a live cd boot
is_live_cd_boot ()
{