Activate utility luci-app-tn-netports
This commit is contained in:
29
kng_re.netports
Normal file
29
kng_re.netports
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
config global 'global'
|
||||||
|
option default_additional_info '0'
|
||||||
|
option default_h_mode '1'
|
||||||
|
option hv_mode_switch_button '1'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'wan'
|
||||||
|
option name 'WAN'
|
||||||
|
option type 'copper'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'lan1'
|
||||||
|
option name 'LAN 1'
|
||||||
|
option type 'copper'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'lan2'
|
||||||
|
option name 'LAN 2'
|
||||||
|
option type 'copper'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'lan3'
|
||||||
|
option name 'LAN 3'
|
||||||
|
option type 'copper'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'lan4'
|
||||||
|
option name 'LAN 4'
|
||||||
|
option type 'copper'
|
||||||
22
r3d.netports
Normal file
22
r3d.netports
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
config global 'global'
|
||||||
|
option default_additional_info '0'
|
||||||
|
option default_h_mode '1'
|
||||||
|
option hv_mode_switch_button '1'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'eth0'
|
||||||
|
option name 'WAN'
|
||||||
|
option type 'copper'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'eth1'
|
||||||
|
option name 'LAN'
|
||||||
|
option type 'copper'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'wlan1'
|
||||||
|
option name 'WiFi 2G'
|
||||||
|
|
||||||
|
config port
|
||||||
|
option ifname 'wlan0'
|
||||||
|
option name 'WiFi 5G'
|
||||||
9
xmake.sh
9
xmake.sh
@@ -52,6 +52,15 @@ if [ -f "$TARGET_MENU" ]; then
|
|||||||
cp -f "$TARGET_MENU" $XDIR/luci_aux_menu.json
|
cp -f "$TARGET_MENU" $XDIR/luci_aux_menu.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
NETPORTSDIR=$XDIR/package/addons/luci-app-tn-netports/root/etc/config
|
||||||
|
if [ -d "$NETPORTSDIR" ]; then
|
||||||
|
rm -f $NETPORTSDIR/luci_netports
|
||||||
|
TARGET_NETPORTS=$XDIR/$XTARGET.netports
|
||||||
|
if [ -f "$TARGET_NETPORTS" ]; then
|
||||||
|
cp -f "$TARGET_NETPORTS" $NETPORTSDIR/luci_netports
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$MAKE_JOBS" ]; then
|
if [ -z "$MAKE_JOBS" ]; then
|
||||||
MAKE_JOBS=$( grep processor /proc/cpuinfo | tail -n 1 | awk '{print $3}' )
|
MAKE_JOBS=$( grep processor /proc/cpuinfo | tail -n 1 | awk '{print $3}' )
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user