version 1.12, 2008/11/12 06:07:42 |
version 1.13, 2008/11/19 22:35:56 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: update_openbsd,v 1.11 2008/11/09 07:22:52 andrew Exp $ |
# $RedRiver: update_openbsd,v 1.12 2008/11/12 06:07:42 andrew Exp $ |
|
|
if [ -e /etc/update_openbsd.conf ]; then |
if [ -e /etc/update_openbsd.conf ]; then |
. /etc/update_openbsd.conf |
. /etc/update_openbsd.conf |
|
|
|
|
local _v=$FILE_VER |
local _v=$FILE_VER |
if [ -e base${_v}.tgz ]; then |
if [ -e base${_v}.tgz ]; then |
echo Extracting new firmware from base${_v}.tgz |
echo Extracting new firmware and ifconfig from base${_v}.tgz |
$SUDO tar -C $DESTDIR -xzphf base${_v}.tgz "*etc/firmware/*" |
$SUDO tar -C $DESTDIR -xzphf base${_v}.tgz \ |
|
./etc/firmware ./sbin/ifconfig |
fi |
fi |
|
|
$SUDO rm -f /obsd |
$SUDO rm -f /obsd |