|
version 1.1.2.3, 2014/01/23 23:36:36
|
version 1.2, 2014/09/15 19:06:47
|
|
Line 40 boot()
|
Line 40 boot()
|
| cd / |
cd / |
| } |
} |
| |
|
| |
restore_uboot() |
| |
{ |
| |
echo "Load configz from NAND ..." |
| |
/etc/rc.cfg load /etc |
| |
} |
| |
|
| options() |
options() |
| { |
{ |
| echo "Set firmware options ..." | tee -a $BOOTLOG |
echo "Set firmware options ..." | tee -a $BOOTLOG |
|
Line 49 options()
|
Line 55 options()
|
| passwd() |
passwd() |
| { |
{ |
| echo "Syncing password database ..." | tee -a $BOOTLOG |
echo "Syncing password database ..." | tee -a $BOOTLOG |
| pwd_mkdb /etc/master.passwd | tee -a $BOOTLOG 1>/dev/null 2>&1 | # pwd_mkdb /etc/master.passwd | tee -a $BOOTLOG 1>/dev/null 2>&1 |
| rm -f /etc/nologin |
rm -f /etc/nologin |
| } |
} |
| |
|
|
Line 71 geteth()
|
Line 77 geteth()
|
| mgmt() |
mgmt() |
| { |
{ |
| [ -r /etc/mylan ] && VDEV=`cat /etc/mylan` |
[ -r /etc/mylan ] && VDEV=`cat /etc/mylan` |
| if [ -x /usr/bin/get1steth ]; then | if [ -x /usr/local/bin/get1steth ]; then |
| VDEV=${VDEV:-`get1steth -g`} |
VDEV=${VDEV:-`get1steth -g`} |
| |
|
| get1steth -v $VDEV | tee -a $BOOTLOG 1>/dev/null 2>&1 |
get1steth -v $VDEV | tee -a $BOOTLOG 1>/dev/null 2>&1 |
|
Line 164 service()
|
Line 170 service()
|
| # |
# |
| |
|
| boot |
boot |
| |
restore_uboot |
| echo "elwix>>> Start system boot stage at `date`" | tee $BOOTLOG |
echo "elwix>>> Start system boot stage at `date`" | tee $BOOTLOG |
| options |
options |
| passwd |
passwd |