This commit is contained in:
2023-12-17 00:40:37 +05:00
parent c67a83ff8a
commit ee7567cfa2
2 changed files with 31 additions and 34 deletions

View File

@@ -5,8 +5,8 @@
wlan_name="office"
wlan_password="fuckingwep"
root_password="AsD7fg"
lan_ip_address="192.168.47.1"
hostname="gw-aramil"
lan_ip_address="192.168.77.1"
hostname="gw-elmash"
# dhcp server 1 disable, 0 enable
dhcpsrv="0"
@@ -47,7 +47,7 @@ uci set system.@system[0].timezone='<+05>-5'
uci set system.ntp.enable_server='1'
uci set system.ntp.interface='lan'
uci set system.@system[0].zonename='Asia/Yekaterinburg'
commit system
uci commit system
/etc/init.d/system restart
# Configure ssh dropbear
@@ -65,37 +65,37 @@ uci commit dropbear
# Configure uhttpd
uci set uhttpd.main.listen_http='0.0.0.0:8080'
uci set uhttpd.main.listen_https='0.0.0.0:4431'
commit uhttpd
uci commit uhttpd
/etc/init.d/uhttpd restart
# DHCP server on/off
#uci set dhcp.lan.ignore="$dhcpsrv"
#uci add host
#uci set dhcp.@host[-1].name='jeka-office'
#uci set dhcp.@host[-1].mac='4c:cc:6a:01:5d:30'
#uci set dhcp.@host[-1].ip='192.168.77.35'
#uci add host
#uci set dhcp.@host[-1].name='fs1370dn'
#uci set dhcp.@host[-1].mac='00:C0:EE:9E:01:55'
#uci set dhcp.@host[-1].ip='192.168.77.33'
#uci add host
#uci set dhcp.@host[-1].name='kyoceraigor'
#uci set dhcp.@host[-1].mac='00:17:C8:21:A7:F2'
#uci set dhcp.@host[-1].ip='192.168.77.30'
#uci add host
#uci set dhcp.@host[-1].name='kyocerascanner'
#uci set dhcp.@host[-1].mac='00:C0:EE:BB:85:2C'
#uci set dhcp.@host[-1].ip='192.168.77.31'
#uci add host
#uci set dhcp.@host[-1].name='natasha-office'
#uci set dhcp.@host[-1].mac='50:46:5D:09:D0:69'
#uci set dhcp.@host[-1].ip='192.168.77.36'
#uci add host
#uci set dhcp.@host[-1].name='klipper'
#uci set dhcp.@host[-1].mac='B8:27:EB:B9:82:6D'
#uci set dhcp.@host[-1].ip='192.168.77.44'
#uci commit dhcp
#/etc/init.d/dnsmasq restart
uci set dhcp.lan.ignore="$dhcpsrv"
uci add host
uci set dhcp.@host[-1].name='jeka-office'
uci set dhcp.@host[-1].mac='4c:cc:6a:01:5d:30'
uci set dhcp.@host[-1].ip='192.168.77.35'
uci add host
uci set dhcp.@host[-1].name='fs1370dn'
uci set dhcp.@host[-1].mac='00:C0:EE:9E:01:55'
uci set dhcp.@host[-1].ip='192.168.77.33'
uci add host
uci set dhcp.@host[-1].name='kyoceraigor'
uci set dhcp.@host[-1].mac='00:17:C8:21:A7:F2'
uci set dhcp.@host[-1].ip='192.168.77.30'
uci add host
uci set dhcp.@host[-1].name='kyocerascanner'
uci set dhcp.@host[-1].mac='00:C0:EE:BB:85:2C'
uci set dhcp.@host[-1].ip='192.168.77.31'
uci add host
uci set dhcp.@host[-1].name='natasha-office'
uci set dhcp.@host[-1].mac='50:46:5D:09:D0:69'
uci set dhcp.@host[-1].ip='192.168.77.36'
uci add host
uci set dhcp.@host[-1].name='klipper'
uci set dhcp.@host[-1].mac='B8:27:EB:B9:82:6D'
uci set dhcp.@host[-1].ip='192.168.77.44'
uci commit dhcp
/etc/init.d/dnsmasq restart
# Configure network
/etc/init.d/network restart

View File

@@ -1,3 +0,0 @@
#!/usr/bin/env bash
./build.sh ath79 generic tplink_tl-wdr3600-v1