Skip to content

Commit

Permalink
refactor: split network to two module
Browse files Browse the repository at this point in the history
cause some use do not want modify lan ip and PPPoE at same time
  • Loading branch information
EkkoG committed Oct 11, 2024
1 parent 9bc1dc6 commit a8a4745
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e

default_modules="add-all-device-to-lan add-feed-key add-feed ib argon base network opkg-mirror prefer-ipv6-settings statistics system tools"
default_modules="add-all-device-to-lan add-feed-key add-feed ib argon base opkg-mirror prefer-ipv6-settings statistics system tools"

echo "Default modules: $default_modules"

Expand Down
1 change: 1 addition & 0 deletions modules/lan/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LAN_IP=192.168.2.1
7 changes: 7 additions & 0 deletions modules/lan/files/etc/uci-defaults/89-network
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

uci batch << EOF

set network.lan.ipaddr='$LAN_IP'

commit
EOF
3 changes: 0 additions & 3 deletions modules/network/example.env

This file was deleted.

2 changes: 2 additions & 0 deletions modules/pppoe/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PPPOE_USERNAME=
PPPOE_PASSWORD=
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,3 @@ set network.wan.password='$PPPOE_PASSWORD'

commit
EOF

uci batch << EOF

set network.lan.ipaddr='$LAN_IP'

commit
EOF

0 comments on commit a8a4745

Please sign in to comment.