1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/filesystem/usr/script/lanAlias_start.sh
2024-07-22 01:58:46 -03: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