Activate utility luci-app-tn-netports

This commit is contained in:
remittor
2022-08-27 12:09:33 +03:00
parent 06a71817e2
commit 596e4adf86
3 changed files with 60 additions and 0 deletions

29
kng_re.netports Normal file
View 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
View 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'

View File

@@ -52,6 +52,15 @@ if [ -f "$TARGET_MENU" ]; then
cp -f "$TARGET_MENU" $XDIR/luci_aux_menu.json
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
MAKE_JOBS=$( grep processor /proc/cpuinfo | tail -n 1 | awk '{print $3}' )
fi