diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-18 03:36:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-18 03:36:41 +0000 |
commit | d4556e076033cce838983099e3a0fff4b2e4e0f2 (patch) | |
tree | e17b89ee128598674da6d91ee818ad5eb28195ff /etc/rc | |
parent | e4c36f67cee4fd7a24cf5cd4cbeb7c0cb7e0d7e8 (diff) | |
download | pfsense-d4556e076033cce838983099e3a0fff4b2e4e0f2.zip pfsense-d4556e076033cce838983099e3a0fff4b2e4e0f2.tar.gz |
Move platform definition up
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -17,8 +17,12 @@ HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin export HOME PATH +# Set our current version version=`cat /etc/version` +# Set our operating platform +PLATFORM=`cat /etc/platform` + if [ "$PLATFORM" = "cdrom" ]; then /etc/rc.d/freesbie_1st fi @@ -27,9 +31,6 @@ echo echo "Welcome to pfSense ${version} ..." echo -# Set our operating platform -PLATFORM=`cat /etc/platform` - /sbin/mount -a || fsck -y && mount -a if [ ! "$PLATFORM" = "cdrom" ]; then SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1` |