version 1.1.1.1.6.2, 2012/02/16 10:05:34
|
version 1.4, 2014/01/05 23:14:23
|
Line 18 EDITOR=vi
|
Line 18 EDITOR=vi
|
PAGER=less |
PAGER=less |
export HOME PATH TERM BLOCKSIZE EDITOR PAGER |
export HOME PATH TERM BLOCKSIZE EDITOR PAGER |
|
|
SYSPKGDIR="/system" | SYSPKGDIR="/var/frm" |
BOOTLOG="/var/run/elwix.boot" |
BOOTLOG="/var/run/elwix.boot" |
XML="/etc/config.xml" |
XML="/etc/config.xml" |
|
|
Line 81 mgmt()
|
Line 81 mgmt()
|
get1steth -v $VDEV | tee -a $BOOTLOG 1>/dev/null 2>&1 |
get1steth -v $VDEV | tee -a $BOOTLOG 1>/dev/null 2>&1 |
else |
else |
VDEV=${VDEV:-`geteth`} |
VDEV=${VDEV:-`geteth`} |
|
ifconfig $VDEV up |
ifconfig vlan$MGMT_VLAN create vlan $MGMT_VLAN vlandev $VDEV |
ifconfig vlan$MGMT_VLAN create vlan $MGMT_VLAN vlandev $VDEV |
ifconfig vlan$MGMT_VLAN name $MGMT_NAME |
ifconfig vlan$MGMT_VLAN name $MGMT_NAME |
ifconfig $MGMT_NAME inet $MGMT_ADDR |
ifconfig $MGMT_NAME inet $MGMT_ADDR |
Line 96 syspkg()
|
Line 97 syspkg()
|
|
|
echo "Mounting firmware system packages:" | tee -a $BOOTLOG |
echo "Mounting firmware system packages:" | tee -a $BOOTLOG |
# Raw images |
# Raw images |
for i in /elwix/cf/*-firmware.pkg; do | for i in /elwix/cf/*-pkg.frm; do |
if [ -r $i ]; then |
if [ -r $i ]; then |
MDDEV=$(mdconfig -a -t vnode -f $i); |
MDDEV=$(mdconfig -a -t vnode -f $i); |
install -d $SYSPKGDIR/$MDDEV; |
install -d $SYSPKGDIR/$MDDEV; |
Line 118 syspkg()
|
Line 119 syspkg()
|
fi |
fi |
done |
done |
# UZIP images |
# UZIP images |
for i in /elwix/cf/*-firmware-z.pkg; do | for i in /elwix/cf/*-pkg.frz; do |
if [ -r $i ]; then |
if [ -r $i ]; then |
MDDEV=$(mdconfig -a -t vnode -f $i); |
MDDEV=$(mdconfig -a -t vnode -f $i); |
install -d $SYSPKGDIR/$MDDEV; |
install -d $SYSPKGDIR/$MDDEV; |