gpt-2741gnac_root_files/_mtdblock5.img.extracted/squashfs-root/usr/script/lanAlias_start.sh
2023-11-26 03:26:24 -03:00

22 lines
329 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
if [ "$Active" = "Yes" ] ; then
#/sbin/ifconfig br0:$i $IP netmask $netmask up
/sbin/ifconfig br0:$i $IP netmask $netmask up
fi