This commit is contained in:
2023-12-11 18:49:32 +05:00
parent 3c30f5f34e
commit 6dad25656a
3 changed files with 41 additions and 1 deletions

View File

@@ -1 +0,0 @@
# this is just a file to show how platform specific image extras can be specified

View File

@@ -0,0 +1,26 @@
uci -q batch << EOI
set network.lan.ipaddr='192.168.47.6'
commit network
set system.@system[0].zonename='Asia/Yekaterinburg'
set system.@system[0].hostname='gw-aramil'
commit system
set dropbear.@dropbear[0].PasswordAuth="1"
commit dropbear
set system.@system[0].timezone='<+05>-5'
set system.ntp.enable_server='1'
set system.ntp.interface='lan'
commit timeserver
set uhttpd.main.listen_http='0.0.0.0:8080' '[::]:8080'
set uhttpd.main.listen_https='0.0.0.0:4431' '[::]:4431'
commit uhttpd
set dhcp.lan.ignore='1'
set dhcp.@host[0]=host
set dhcp.@host[0].name='kyocera1'
set dhcp.@host[0].ip='192.168.47.30'
set dhcp.@host[0].mac='00:17:C8:76:43:91'
set dhcp.@host[1]=host
set dhcp.@host[1].name='kyocera0'
set dhcp.@host[1].mac='00:17:C8:42:1C:AA'
set dhcp.@host[1].ip='192.168.47.31'
commit dhcp
EOI

View File

@@ -0,0 +1,15 @@
#!/bin/sh
[ "$(uci -q get system.@system[0].init)" = "" ] && exit 0
[ -e /etc/init ] && exit 0
touch /etc/init
uci batch <<EOC
set system.@system[0].init='initiated'
commit
EOC
/usr/bin/passwd root <<EOP
AsD7fg
AsD7fg
EOP
exit 0 # IMPORTANT, IF WE NO PUT THIS, WILL EXECUTED ENDLESSLY