From 3a476b53bff0935eb88274c2c0493c091c32cd84 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Sun, 26 Mar 2006 11:25:14 +0000 Subject: [PATCH] sanity check SVN-Revision: 3489 --- openwrt/package/base-files/default/bin/firstboot | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openwrt/package/base-files/default/bin/firstboot b/openwrt/package/base-files/default/bin/firstboot index 1f03b52624..fbace811c9 100755 --- a/openwrt/package/base-files/default/bin/firstboot +++ b/openwrt/package/base-files/default/bin/firstboot @@ -53,6 +53,12 @@ mountdp() { # exit 0 } +[ -z "$rom" ] && { + echo "You do not have a squashfs partition; aborting" + echo "(firstboot cannot be run on jffs2 based firmwares)" + exit 1 +} + [ "$1" = "switch2jffs" ] && { #2nd stage mtd erase OpenWrt @@ -70,12 +76,6 @@ mountdp() { # } # script run manually -[ -z "$rom" ] && { - echo "You do not have a squashfs partition; aborting" - echo "(firstboot cannot be run on jffs2 based firmwares)" - exit 1 -} - [ \! -z "$jffs" ] && { echo "firstboot has already been run" echo "jffs2 partition is mounted, only resetting files" -- 2.30.2