diff options
author | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 14:15:18 +1200 |
---|---|---|
committer | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 14:15:18 +1200 |
commit | 7734aea648d609bbdf308d97f85d7d089c831d6f (patch) | |
tree | 44b364f02f771f54a5350c226459886068a3361a /usr/local/bin | |
parent | 8f9bffbc987a072b7d266011396726489ed92450 (diff) | |
download | pfsense-7734aea648d609bbdf308d97f85d7d089c831d6f.zip pfsense-7734aea648d609bbdf308d97f85d7d089c831d6f.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-x | usr/local/bin/beep.sh | 10 |
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 |