1
0
Files
2016-11-30 09:03:17 +08:00

20 lines
291 B
Bash
Executable File

#!/bin/sh
if [ $# != 1 ] ; then
echo "usage: $0 [PVCn]"
exit 0
fi
i=$1
CONFFILE=/etc/lanAlias$i.conf
echo $CONFFILE
if [ -f $CONFFILE ] ; then
chmod 777 $CONFFILE
. $CONFFILE
else
exit 0
fi
#/sbin/ifconfig br0:$i $IP netmask $netmask up
/sbin/ifconfig br0:$i $IP netmask $netmask up