diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-19 02:01:51 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-19 02:01:51 +0000 |
commit | 31540677649c5b7bad85fa5fc67360c9946f52f8 (patch) | |
tree | a58b25f0925b5878c7ed0cd9b4d33c9451d92d14 /etc/rc | |
parent | 1e6fdd81d55e6fc9ce91e241ab1f31a90e9ba724 (diff) | |
download | pfsense-31540677649c5b7bad85fa5fc67360c9946f52f8.zip pfsense-31540677649c5b7bad85fa5fc67360c9946f52f8.tar.gz |
Move livecd routines to rc.cdrom.
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 24 |
1 files changed, 5 insertions, 19 deletions
@@ -23,19 +23,15 @@ version=`cat /etc/version` # Set our operating platform PLATFORM=`cat /etc/platform` -if [ "$PLATFORM" = "cdrom" ]; then - /etc/rc.d/freesbie_1st - if [ ! -f /cf/conf ]; then - mkdir -p /cf/conf - /rescue/cp /FreeSBIE/cf/conf/* /cf/conf/ - fi - /bin/sh /scripts/pfi start -fi - echo echo "Welcome to pfSense ${version} on the '${PLATFORM}' platform..." echo +if [ "$PLATFORM" = "cdrom" ]; then + echo "Running CDROM routines..." + /etc/rc.cdrom +fi + /sbin/mount -a || fsck -y && mount -a if [ ! "$PLATFORM" = "cdrom" ]; then SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1` @@ -70,15 +66,6 @@ fi [ ! -d /cf/conf/backup/ ] || mkdir -p /cf/conf/backup/ 2>/dev/null -if [ "$PLATFORM" = "cdrom" ]; then - if [ ! -L /conf ]; then - /rescue/ln -s /cf/conf /conf - fi - [ ! -f /cf/conf/config.xml ] || /rescue/cp /FreeSBIE/cf/conf/config.xml /cf/conf/ - [ ! -f /cf/conf/ez-ipupdate.cache ] || /rescue/cp /FreeSBIE/cf/conf/ez-ipupdate.cache /cf/conf/ - mkdir /var/db/ -fi - set -T trap "echo 'Reboot interrupted'; exit 1" 3 @@ -161,4 +148,3 @@ fi echo "Bootup complete" exit 0 - |