Displaying 1 result from an estimated 1 matches for "mmask".
Did you mean:
mask
2012 Mar 19
1
ip autoconfig via DIY script
.../cmdline| grep -Po ''ip.*off'')
# check cmdline for ip autoconfig
if [ ${#SCM} -gt 0 ]; then
SCM=${SCM#ip\=}
SCM=$(echo $SCM | sed ''s/:/ /g'')
#${SCM//\:/\ }
j=0
for i in $SCM; do
echo $i $j
case $j in
0)
MIP=$i;;
1)
echo ;;
2)
MGATE=$i;;
3)
MMASK=$i;;
4)
MHOST=$i;;
5)
MINT=$i;;
esac
j=$((j+1))
done
/sbin/ifconfig -a $MINT $MIP netmask $MMASK up
sleep 1
/sbin/route add default gw $MGATE
echo $MHOST > /etc/hostname
fi
sleep 2
wget --spider http://192.168.1.1/favicon.ico?xendomU
exit 0
------------------------- snip -------...