1#!/bin/sh
| 1#!/bin/sh
|
2# $FreeBSD: head/release/picobsd/mfs_tree/stand/update 91866 2002-03-08 12:14:46Z luigi $
| 2# $FreeBSD: head/release/picobsd/mfs_tree/stand/update 92059 2002-03-11 05:15:44Z luigi $
|
3# script to edit and save some config file(s). 4# If called with no arguments, it edits 3 files in /etc 5thefiles=$* 6[ -z "$thefiles" ] && \ 7 thefiles="/etc/rc.conf /etc/rc.firewall /etc/master.passwd"
| 3# script to edit and save some config file(s). 4# If called with no arguments, it edits 3 files in /etc 5thefiles=$* 6[ -z "$thefiles" ] && \ 7 thefiles="/etc/rc.conf /etc/rc.firewall /etc/master.passwd"
|
8dev=`sysctl -n kern.bootdevname` 9[ -z ${dev} ] && dev="/dev/fd0"
| 8dev=`sysctl -n machdep.guessed_bootdev` 9[ -c "${dev}" ] || dev="/dev/fd0"
|
10mount ${dev} /mnt 11if [ "$?" != "0" ] ; then 12 echo "" 13 echo "Cannot mount ${dev} read-write!" 14 exit 1 15fi 16 17echo "Updating ${thefiles} on ${dev}: "
--- 33 unchanged lines hidden --- | 10mount ${dev} /mnt 11if [ "$?" != "0" ] ; then 12 echo "" 13 echo "Cannot mount ${dev} read-write!" 14 exit 1 15fi 16 17echo "Updating ${thefiles} on ${dev}: "
--- 33 unchanged lines hidden --- |