diff --git a/kng_re.netports b/kng_re.netports new file mode 100644 index 0000000..0b5bae7 --- /dev/null +++ b/kng_re.netports @@ -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' diff --git a/r3d.netports b/r3d.netports new file mode 100644 index 0000000..ca7f93c --- /dev/null +++ b/r3d.netports @@ -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' diff --git a/xmake.sh b/xmake.sh index 1641ef9..8dfac1a 100755 --- a/xmake.sh +++ b/xmake.sh @@ -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