Current Path : /usr/src/release/picobsd/mfs_tree/etc/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/release/picobsd/mfs_tree/etc/rc |
#!/bin/sh # $FreeBSD: release/9.1.0/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $ stty status '^T' trap : 2 trap : 3 HOME=/; export HOME PATH=/bin; export PATH dev=`sysctl -n machdep.guessed_bootdev` [ -c "${dev}" ] || dev="/dev/fd0" trap "echo 'Reboot interrupted'; exit 1" 3 set `df /`; mount -u $8 / # upgrade mount to rw echo "Loading /etc from MFS:/fd ..." cp -Rp /fd/* / echo "Updating /etc from ${dev}..." mount -o rdonly ${dev} /fd && \ { cd /fd; cp -Rp etc root / ; cd / ; umount /fd ; } cd /etc #rm files to stop overwrite warning for i in *; do [ -f $i.gz ] && rm $i done gzip -d *.gz . /etc/rc1 exit 0