summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorAndrew Thompson <andrew@clonedev.co.nz>2011-08-17 14:07:20 +1200
committerAndrew Thompson <andrew@clonedev.co.nz>2011-08-17 14:07:20 +1200
commita26d95383a6146734f67c9db21cd83534052843a (patch)
treeb1d1e008b6bd84f7c76d0e1b4d9a1d478347a9af /usr/local/bin
parent487830da860f9ba44c4daf83df2c5903400aaa53 (diff)
downloadpfsense-a26d95383a6146734f67c9db21cd83534052843a.zip
pfsense-a26d95383a6146734f67c9db21cd83534052843a.tar.gz
Make initial changes to allow pfSense to work in a jail.
This mostly avoids starting things that will not work and gets the initial config. Most of the pfSense functionality will not work (pf rules, routing, etc) but it can be used for testing.
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/beep.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index febb222..6f4e477 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -9,9 +9,11 @@ if [ "$PFSENSETYPE" = "embedded" ]; then
fi
# this is super annoying in VMware, exit if in VMware
-VMWCOUNT=`/usr/bin/grep -c VMware /var/log/dmesg.boot`
-if [ $VMWCOUNT -gt 0 ]; then
- exit;
+if [ -f /var/log/dmesg.boot ]; then
+ VMWCOUNT=`/usr/bin/grep -c VMware /var/log/dmesg.boot`
+ if [ $VMWCOUNT -gt 0 ]; then
+ exit;
+ fi
fi
# Check for different HZ
@@ -37,4 +39,4 @@ if [ -c "/dev/speaker" ]; then
/usr/local/bin/beep -p 400 $NOTELENGTH
/usr/local/bin/beep -p 400 $NOTELENGTH
fi
-fi \ No newline at end of file
+fi
OpenPOWER on IntegriCloud