Project

General

Profile

Download (10.8 KB) Statistics
| Branch: | Tag: | Revision:
1 5b237745 Scott Ullrich
#!/bin/sh
2
3 3b6a207d Scott Ullrich
# $Id$
4
5 e5cd29a0 Scott Ullrich
# /etc/rc - master bootup script, invokes php setup
6
# part of pfSense by Scott Ullrich
7 8ad39798 Scott Ullrich
# Copyright (C) 2004-2010 Scott Ullrich, All rights reserved.
8 e5cd29a0 Scott Ullrich
# originally based on m0n0wall (http://neon1.net/m0n0wall)
9 5b237745 Scott Ullrich
# Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
10
# All rights reserved.
11 d8a2ce2c Scott Ullrich
12
#/bin/stty status '^T'
13
#/bin/stty susp '^-' intr '^-' quit '^-'
14
15
#trap : 2
16
#trap : 3
17 5b237745 Scott Ullrich
18
HOME=/
19 ce823053 Scott Ullrich
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
20 5b237745 Scott Ullrich
export HOME PATH
21
22 1c44a77d Scott Ullrich
# Set our operating platform
23 e8d0903d Ermal
PLATFORM=`/bin/cat /etc/platform`
24 1c44a77d Scott Ullrich
25 842878b5 Scott Ullrich
# Set our current version
26 e8d0903d Ermal
version=`/bin/cat /etc/version`
27 842878b5 Scott Ullrich
28 c4995e62 Chris Buechler
# Mount memory file system if it exists
29 8022e257 Scott Ullrich
echo "Mounting filesystems..."
30 842878b5 Scott Ullrich
31 87db1017 Scott Ullrich
# Handle ZFS read-only case
32 6bc46900 Scott Ullrich
if [ "$PLATFORM" = "pfSense" ]; then
33
	if [ -f /usr/bin/grep ]; then
34
		WHEREISROOT=`/sbin/mount | /usr/bin/grep " / " | /usr/bin/grep "tank" | /usr/bin/cut -d' ' -f1`
35
		if [ "$WHEREISROOT" != "" ]; then
36
			/sbin/zfs set readonly=off $WHEREISROOT
37
		fi
38 8a8f51b7 Scott Ullrich
	fi
39 87db1017 Scott Ullrich
fi
40
41 842878b5 Scott Ullrich
if [ "$PLATFORM" = "cdrom" ]; then
42
	/etc/rc.cdrom
43
fi
44
45
if [ "$PLATFORM" = "embedded" ]; then
46
	/etc/rc.embedded
47
fi
48
49
if [ "$PLATFORM" = "nanobsd" ]; then
50
	/etc/rc.embedded
51
fi
52
53
if [ "$PLATFORM" = "pfSense" ]; then
54 e8d0903d Ermal
	/sbin/mdmfs -S -M -s 4m md /var/run
55 842878b5 Scott Ullrich
fi
56 c4995e62 Chris Buechler
57
# Mount /. If it fails run a fsck.
58
if [ ! "$PLATFORM" = "cdrom" ] ; then
59 ce8efd06 Scott Ullrich
	if [ "$PLATFORM" = "nanobsd" ]; then
60 842878b5 Scott Ullrich
		/sbin/mount -uw / || (/sbin/fsck -fy; /sbin/mount -uw /)
61 ce8efd06 Scott Ullrich
	else 
62
		/sbin/mount -a || (/sbin/fsck -fy; /sbin/mount -a)
63
	fi
64 842878b5 Scott Ullrich
	# If /conf is a directory, convert it to a symlink to /cf/conf
65 c4995e62 Chris Buechler
	if [ -d "/conf" ]; then
66
		# If item is not a symlink then rm and recreate
67
		CONFPOINTSTO=`readlink /conf` 
68
		if ! test "x$CONFPOINTSTO" = "x/cf/conf"; then 
69 e8d0903d Ermal
			/bin/rm -rf /conf
70
			/bin/ln -s /cf/conf /conf
71 c4995e62 Chris Buechler
		fi
72
	fi
73
fi
74
75
# Check to see if a compact flash mountpoint exists
76
# If it fails to mount then run a fsck -fy
77
if grep -q cf /etc/fstab; then
78 8022e257 Scott Ullrich
	/sbin/mount -w /cf 2>/dev/null
79 c4995e62 Chris Buechler
    /sbin/mount -uw /cf || \
80
	(/sbin/umount /cf; /sbin/fsck -fy /cf; /sbin/mount -w /cf)
81
fi
82
83 e8d0903d Ermal
product=`/usr/bin/grep product_name /etc/inc/globals.inc | /usr/bin/cut -d'"' -f4`
84
hideplatform=`/usr/bin/grep hideplatform /etc/inc/globals.inc | /usr/bin/wc -l`
85
varrunpath=`/usr/bin/grep varrun_path /etc/inc/globals.inc | /usr/bin/cut -d'"' -f4`
86 3d7639eb Scott Ullrich
87 6fafc69f Scott Ullrich
if [ "$hideplatform" -gt "0" ]; then
88 3d7639eb Scott Ullrich
	platformbanner="" # hide the platform
89
else
90
	platformbanner=" on the '${PLATFORM}' platform"
91
fi
92 1c44a77d Scott Ullrich
93
echo
94
cat /etc/ascii-art/pfsense-logo-small.txt
95
echo
96
echo
97 ba2cbed4 Scott Ullrich
echo "Welcome to ${product} ${version} ${platformbanner} ..."
98 1c44a77d Scott Ullrich
echo
99
100 d5f60dba Scott Ullrich
# Enable console output if its muted.
101
/sbin/conscontrol mute off >/dev/null
102
103 5621d2d5 Scott Ullrich
if [ "$PLATFORM" = "cdrom" ] ; then
104
	# do nothing for cdrom platform
105
elif [ "$PLATFORM" = "embedded" ] ; then
106 f92e9ff3 Scott Ullrich
    # do nothing for embedded platform
107 803c0401 Scott Ullrich
elif [ "$PLATFORM" = "nanobsd" ] ; then
108 99b8b304 Scott Ullrich
	# Ensure that packages can be persistent across reboots
109 cd465e06 Scott Ullrich
	/bin/mkdir -p /root/var/db/pkg
110 e8d0903d Ermal
	/bin/rm -rf /var/db/pkg
111
	/bin/ln -s /root/var/db/pkg/ /var/db/pkg
112 c0819d14 Jeb Campbell
else
113 e8d0903d Ermal
    SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1`
114 7050e57c Scott Ullrich
    /sbin/swapon -a 2>/dev/null >/dev/null
115 98546a74 Scott Ullrich
fi
116 5621d2d5 Scott Ullrich
117 12bf92ca Scott Ullrich
if [ "$PLATFORM" = "cdrom" ] ; then
118 e8d0903d Ermal
	/bin/mkdir /tmp/unionfs
119
	/bin/mkdir /tmp/unionfs/usr
120
	/bin/mkdir /tmp/unionfs/root
121
	/bin/mkdir /tmp/unionfs/sbin
122
	/bin/mkdir /tmp/unionfs/bin
123
	/bin/mkdir /tmp/unionfs/boot
124
	/bin/mkdir /tmp/unionfs/confdefault
125 ab1a08b2 Scott Ullrich
	echo -n "Mounting unionfs directories:"
126
	echo -n " usr"
127 e8d0903d Ermal
	/sbin/mount_unionfs /tmp/unionfs/usr /usr/
128 12bf92ca Scott Ullrich
	echo -n " root"
129 e8d0903d Ermal
	/sbin/mount_unionfs /tmp/unionfs/root /root/
130 d948c0d4 Scott Ullrich
	echo -n " bin"
131 e8d0903d Ermal
	/sbin/mount_unionfs /tmp/unionfs/bin /bin/		
132 d948c0d4 Scott Ullrich
	echo -n " sbin"
133 e8d0903d Ermal
	/sbin/mount_unionfs /tmp/unionfs/sbin /sbin/	
134 d948c0d4 Scott Ullrich
	echo -n " boot"
135 e8d0903d Ermal
	/sbin/mount_unionfs /tmp/unionfs/boot /boot/
136 4f54dd23 Scott Ullrich
	echo -n " conf.default"
137 e8d0903d Ermal
	/sbin/mount_unionfs /tmp/unionfs/confdefault /conf.default/
138 8b3a495b Scott Ullrich
	echo -n " installer"
139 ab1a08b2 Scott Ullrich
	echo "... done."
140 12bf92ca Scott Ullrich
fi
141
142 2e269da2 Scott Ullrich
echo -n "Creating symlinks..."
143 895ecb35 Scott Ullrich
# Make sure symlink is correct on embedded
144
if [ "$PLATFORM" = "embedded" ] ; then
145 e8d0903d Ermal
	/bin/rm /conf
146
	/bin/ln -s /cf/conf/ /conf
147 895ecb35 Scott Ullrich
fi
148
149 803c0401 Scott Ullrich
# Make sure symlink is correct on nanobsd
150
if [ "$PLATFORM" = "nanobsd" ] ; then
151 e8d0903d Ermal
	/bin/rm /conf
152
	/bin/ln -s /cf/conf/ /conf
153 803c0401 Scott Ullrich
fi
154
155 6bab150e Scott Ullrich
# Repair symlinks if they are broken
156
if [ ! -L /etc/syslog.conf ]; then
157 e8d0903d Ermal
	/bin/rm -rf /etc/syslog.conf
158
	/bin/ln -s /var/etc/syslog.conf /etc/syslog.conf
159 6bab150e Scott Ullrich
fi
160
161 f1cc2287 Scott Ullrich
# Repair symlinks if they are broken
162
if [ ! -L /etc/hosts ]; then
163 e8d0903d Ermal
	/bin/rm -rf /etc/hosts
164
	/bin/ln -s /var/etc/hosts /etc/hosts
165 c8fcdb2f Scott Ullrich
fi
166 095d04db Scott Ullrich
167 f1cc2287 Scott Ullrich
if [ ! -L /etc/resolv.conf ]; then
168 e8d0903d Ermal
    /bin/rm -rf /etc/resolv.conf
169
    /bin/ln -s /var/etc/resolv.conf /etc/resolv.conf
170 f1cc2287 Scott Ullrich
fi
171 095d04db Scott Ullrich
172 230787e7 Scott Ullrich
# Setup compatibility link for packages that
173
# have trouble overriding the PREFIX configure
174
# argument since we build our packages in a
175
# seperated PREFIX area
176 eb03f14e Chris Buechler
# Only create if symlink does not exist. 
177
if [ ! -h /tmp/tmp ]; then
178 e8d0903d Ermal
    /bin/ln -hfs / /tmp/tmp
179 eb03f14e Chris Buechler
fi
180 230787e7 Scott Ullrich
181 4be3f6cf Seth Mos
# Make sure our /tmp is 777 + Sticky
182 3fb8caf2 Scott Ullrich
if [ ! "$PLATFORM" = "cdrom" ] ; then
183 e8d0903d Ermal
	/bin/rm -rf /tmp/*
184 3fb8caf2 Scott Ullrich
fi
185 e8d0903d Ermal
/bin/chmod 1777 /tmp
186 0652f3ae Seth Mos
187 dd64811a Scott Ullrich
if [ ! "$PLATFORM" = "cdrom" ] ; then
188
	# Malloc debugging check
189
	if [ -L /etc/malloc.conf ]; then
190
	    #ln -s aj /etc/malloc.conf
191 e8d0903d Ermal
		/bin/rm /etc/malloc.conf
192 dd64811a Scott Ullrich
	fi
193 cecdf31c Scott Ullrich
fi
194
195 6484bb83 Scott Ullrich
if [ ! -L /etc/dhclient.conf ]; then
196 e8d0903d Ermal
    /bin/rm -rf /etc/dhclient.conf
197 6484bb83 Scott Ullrich
fi
198 c8fcdb2f Scott Ullrich
199 bfe6d078 Scott Ullrich
if [ ! -L /etc/sasyncd.conf ]; then
200 e8d0903d Ermal
    /bin/mkdir -p /var/etc/
201
    /usr/bin/touch /var/etc/sasyncd.conf
202
    /bin/rm -rf /etc/sasyncd.conf
203
    /bin/ln -s /var/etc/sasyncd.conf /etc/sasyncd.conf
204
    /usr/sbin/chown root:wheel /var/etc/sasyncd.conf
205
    /bin/chmod 0600 /var/etc/sasyncd.conf
206 bfe6d078 Scott Ullrich
fi
207
208 544156a7 Scott Ullrich
if [ ! -d /var/tmp ]; then
209 e8d0903d Ermal
	/bin/mkdir -p /var/tmp
210 544156a7 Scott Ullrich
fi
211 4aa70cd8 Scott Ullrich
212 544156a7 Scott Ullrich
if [ ! -d /cf/conf/backup/ ]; then
213 e8d0903d Ermal
	/bin/mkdir -p /cf/conf/backup/ 
214 544156a7 Scott Ullrich
fi
215 d42c2e20 Scott Ullrich
216 9f85112d Scott Ullrich
# OpenVPN storage
217 359e3f6a Scott Ullrich
if [ ! -d /var/etc/openvpn ]; then
218 e8d0903d Ermal
	/bin/mkdir -p /var/etc/openvpn
219 359e3f6a Scott Ullrich
fi
220
if [ ! -d /var/etc/openvpn-csc ]; then
221 e8d0903d Ermal
	/bin/mkdir -p /var/etc/openvpn-csc
222 359e3f6a Scott Ullrich
fi
223 67df0c62 Scott Ullrich
224 5b237745 Scott Ullrich
set -T
225
trap "echo 'Reboot interrupted'; exit 1" 3
226
227 61f1e2ec Scott Ullrich
# Remove old nameserver resolution files
228 e8d0903d Ermal
/bin/rm -f /var/etc/nameserver*
229 61f1e2ec Scott Ullrich
230 f3677fc5 Scott Ullrich
# Create uploadbar tmp directory
231 e8d0903d Ermal
/bin/mkdir -p /tmp/uploadbar
232
/bin/chmod 0777 /tmp/uploadbar
233 f3677fc5 Scott Ullrich
234 5b237745 Scott Ullrich
# make some directories in /var
235 e8d0903d Ermal
/bin/mkdir -p /var/run /var/log /var/etc /var/db/entropy /var/at/jobs/ /var/empty 2>/dev/null
236
/bin/rm /var/log/* 2>/dev/null
237
/bin/rm -rf /var/run/*
238 5b237745 Scott Ullrich
239 2e269da2 Scott Ullrich
echo -n "."
240 74772f9f Scott Ullrich
DISABLESYSLOGCLOG=`cat /cf/conf/config.xml | grep disablesyslogclog | wc -l | awk '{ print $1 }'`
241 dbdbd597 Scott Ullrich
if [ "$DISABLESYSLOGCLOG" -gt "0" ]; then 
242 e8d0903d Ermal
	/usr/bin/touch /var/log/system.log
243
	/usr/bin/touch /var/log/filter.log
244
	/usr/bin/touch /var/log/dhcpd.log
245
	/usr/bin/touch /var/log/vpn.log
246 a6607b5f jim-p
	/usr/bin/touch /var/log/pptps.log
247
	/usr/bin/touch /var/log/poes.log
248
	/usr/bin/touch /var/log/l2tps.log
249 e8d0903d Ermal
	/usr/bin/touch /var/log/openvpn.log
250
	/usr/bin/touch /var/log/portalauth.log
251
	/usr/bin/touch /var/log/ipsec.log
252
	/usr/bin/touch /var/log/ppp.log
253
	/usr/bin/touch /var/log/relayd.log
254
	/usr/bin/touch /var/log/lighttpd.log
255
	/usr/bin/touch /var/log/ntpd.log
256
	/usr/bin/touch /var/log/apinger.log
257 dbdbd597 Scott Ullrich
else 
258 8274afc7 Scott Ullrich
	ENABLEFIFOLOG=`cat /cf/conf/config.xml | grep usefifolog | wc -l | awk '{ print $1 }'`
259
	if [ "$ENABLEFIFOLOG" -gt "0" ]; then
260
		# generate fifolog files
261
		/usr/sbin/fifolog_create -s 511488 /var/log/system.log
262
		/usr/sbin/fifolog_create -s 511488 /var/log/filter.log
263
		/usr/sbin/fifolog_create -s 50688 /var/log/dhcpd.log
264
		/usr/sbin/fifolog_create -s 50688 /var/log/vpn.log
265 a6607b5f jim-p
		/usr/sbin/fifolog_create -s 50688 /var/log/pptps.log
266
		/usr/sbin/fifolog_create -s 50688 /var/log/poes.log
267
		/usr/sbin/fifolog_create -s 50688 /var/log/l2tps.log
268 8274afc7 Scott Ullrich
		/usr/sbin/fifolog_create -s 50688 /var/log/openvpn.log
269
		/usr/sbin/fifolog_create -s 50688 /var/log/portalauth.log
270
		/usr/sbin/fifolog_create -s 50688 /var/log/ipsec.log
271 295e19dd Scott Ullrich
		/usr/sbin/fifolog_create -s 50688 /var/log/ppp.log
272 8274afc7 Scott Ullrich
		/usr/sbin/fifolog_create -s 50688 /var/log/relayd.log
273
		/usr/sbin/fifolog_create -s 50688 /var/log/lighttpd.log
274
		/usr/sbin/fifolog_create -s 50688 /var/log/ntpd.log
275 b1f4d7d4 Chris Buechler
		/usr/sbin/fifolog_create -s 50688 /var/log/apinger.log
276 8274afc7 Scott Ullrich
	else 
277
		/usr/sbin/clog -i -s 512144 /var/log/system.log
278
		/usr/sbin/clog -i -s 512144 /var/log/filter.log
279
		/usr/sbin/clog -i -s 65535 /var/log/dhcpd.log
280
		/usr/sbin/clog -i -s 65535 /var/log/vpn.log
281 a6607b5f jim-p
		/usr/sbin/clog -i -s 50688 /var/log/pptps.log
282
		/usr/sbin/clog -i -s 50688 /var/log/poes.log
283
		/usr/sbin/clog -i -s 50688 /var/log/l2tps.log
284 8274afc7 Scott Ullrich
		/usr/sbin/clog -i -s 65535 /var/log/openvpn.log
285
		/usr/sbin/clog -i -s 65535 /var/log/portalauth.log
286
		/usr/sbin/clog -i -s 65535 /var/log/ipsec.log
287 295e19dd Scott Ullrich
		/usr/sbin/clog -i -s 65535 /var/log/ppp.log
288 8274afc7 Scott Ullrich
		/usr/sbin/clog -i -s 65535 /var/log/slbd.log
289
		/usr/sbin/clog -i -s 65535 /var/log/lighttpd.log
290
		/usr/sbin/clog -i -s 65535 /var/log/ntpd.log
291 b1f4d7d4 Chris Buechler
		/usr/sbin/clog -i -s 65535 /var/log/relayd.log	
292
		/usr/sbin/clog -i -s 65535 /var/log/apinger.log	
293 8274afc7 Scott Ullrich
	fi
294 dbdbd597 Scott Ullrich
fi 
295 57ecd9b6 Scott Ullrich
# change permissions on newly created fifolog files.
296 e8d0903d Ermal
/bin/chmod 0600 /var/log/*.log
297 8d418ca9 Scott Ullrich
298 2e269da2 Scott Ullrich
echo -n "."
299 e8d0903d Ermal
DEVFS=`/sbin/mount | /usr/bin/grep devfs | /usr/bin/wc -l | /usr/bin/cut -d" " -f8`
300 f93c5384 Scott Ullrich
if [ "$DEVFS" = "0" ]; then
301
    mount_devfs devfs /dev
302
fi
303 5b237745 Scott Ullrich
304
# Create an initial utmp file
305 e8d0903d Ermal
cd /var/run && /bin/cp /dev/null utmp && /bin/chmod 644 utmp
306 5b237745 Scott Ullrich
307 2e269da2 Scott Ullrich
echo -n "."
308 6fe4f291 Scott Ullrich
/sbin/ldconfig -elf /usr/lib /usr/local/lib /lib
309 c268f10f Scott Ullrich
310 cdbc61b6 Scott Ullrich
# Make sure /etc/rc.conf doesn't exist.
311
if [ -f /etc/rc.conf ]; then
312 e8d0903d Ermal
    /bin/rm -rf /etc/rc.conf
313 cdbc61b6 Scott Ullrich
fi
314
315 b1ce7649 Scott Ullrich
# Launching kbdmux(4)
316
if [ -f "/dev/kbdmux0" ]; then
317 2e269da2 Scott Ullrich
	echo -n "."
318 e8d0903d Ermal
	/usr/sbin/kbdcontrol -k /dev/kbdmux0 < /dev/console
319 b1ce7649 Scott Ullrich
	[ -c "/dev/atkbd0" ] && kbdcontrol -a atkbd0 < /dev/console
320 4e7b2b27 Scott Ullrich
	[ -c "/dev/ukbd0" ] && kbdcontrol -a ukbd0 < /dev/console
321
fi
322
323
# Fire up unionfs if mount points exist.
324
if [ -f /dist/uniondirs ]; then
325 2e269da2 Scott Ullrich
	echo -n "."
326 4e7b2b27 Scott Ullrich
	/etc/rc.d/unionfs start
327 b1ce7649 Scott Ullrich
fi
328 fa8f44ce Scott Ullrich
329 2e269da2 Scott Ullrich
echo "done."
330 deff30cd Scott Ullrich
331 64183253 Scott Ullrich
# Ensure gettytab is of a sane size
332
if [ `/bin/ls -la /etc/gettytab | /usr/bin/awk '{ print $5'}` -lt 512 ]; then
333
	echo ">>> Restoring /etc/gettytab due to unusal size"
334
	echo ">>> Restoring /etc/gettytab due to unusal size" | /usr/bin/logger
335
	cp /etc/gettytab.bak /etc/gettytab
336
fi
337
338 ad0d7518 Scott Ullrich
# Recreate capabilities DB
339
cap_mkdb /etc/login.conf
340
341 40e46009 Scott Ullrich
# Run the php.ini setup file and populate
342
# /usr/local/etc/php.ini and /usr/local/lib/php.ini
343 bc0fd36f Ermal
/etc/rc.php_ini_setup
344 0cf5aa69 Scott Ullrich
345 e8d0903d Ermal
nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status
346
347 b406ae66 Scott Ullrich
# let the PHP-based configuration subsystem set up the system now
348 8e2eb65e Scott Ullrich
echo -n "Launching the init system..."
349 e8d0903d Ermal
/bin/rm -f /cf/conf/backup/backup.cache
350
/bin/rm -f /root/lighttpd*
351
/usr/bin/touch $varrunpath/booting
352 b406ae66 Scott Ullrich
/etc/rc.bootup
353
354 c1da5030 Scott Ullrich
# If a shell was selected from recovery 
355
# console then just drop to the shell now.
356
if [ -f "/tmp/donotbootup" ]; then
357 b1d04497 Scott Ullrich
	echo "Dropping to recovery shell."
358 c1da5030 Scott Ullrich
	exit 0
359
fi
360
361 0c5e431d Scott Ullrich
echo -n "Starting CRON... "
362 ea83ac64 Scott Ullrich
cd /tmp && /usr/sbin/cron -s 2>/dev/null
363 0c5e431d Scott Ullrich
echo "done."
364 3e08b3c1 Scott Ullrich
365 5be5825e Scott Ullrich
# Start packages
366
/etc/rc.start_packages
367 3bd1bd72 Scott Ullrich
368 e8d0903d Ermal
/bin/rm -rf /usr/local/pkg/pf/CVS
369 bc086d51 Scott Ullrich
370 0092b3bd mgrooms
# Start ping handler every 240 seconds
371 e8d0903d Ermal
/usr/local/bin/minicron 240 /var/run/ping_hosts.pid /usr/local/bin/ping_hosts.sh
372 f2025e91 Scott Ullrich
373 0092b3bd mgrooms
# Start account expire handler every hour
374 41fb483a Ermal
/usr/local/bin/minicron 3600 /var/run/expire_accounts.pid /etc/rc.expireaccounts
375 0092b3bd mgrooms
376 f6ba4bd1 Scott Ullrich
# Start alias url updater every 24 hours
377 e8d0903d Ermal
/usr/local/bin/minicron 86400 /var/run/update_alias_url_data.pid /etc/rc.update_alias_url_data
378 f6ba4bd1 Scott Ullrich
379 c432da9c Scott Ullrich
/bin/chmod a+rw /tmp/.
380 b569598b Scott Ullrich
381 e393a4a8 Scott Ullrich
echo "Bootup complete"
382 1f0f301c jim-p
rm $varrunpath/booting
383 1ba9533c Scott Ullrich
384 2d4be1c5 Scott Ullrich
/usr/local/bin/beep.sh start 2>&1 >/dev/null
385 e393a4a8 Scott Ullrich
386 4171fa68 Scott Ullrich
# Reset the cache.  read-only requires this.
387
rm /tmp/config.cache
388
389 0eb1fdbc Scott Ullrich
/etc/rc.conf_mount_ro
390
391 d35cf0de Scott Ullrich
exit 0