mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
refactor: moved scripts around
This commit is contained in:
11
scripts/turris-os.create-container.sh
Normal file
11
scripts/turris-os.create-container.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
lxc-create -n 'alpine' -t 'download' -- -d 'Alpine' -r '3.18' -a 'armv7l'
|
||||
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='alpine'
|
||||
uci set dhcp.@host[-1].mac="$(grep 'hwaddr' '/srv/lxc/alpine/config' | sed 's/.*= //')"
|
||||
uci set dhcp.@host[-1].ip='192.168.111.2'
|
||||
uci commit 'dhcp'
|
||||
reload_config
|
||||
luci-reload
|
||||
7
scripts/turris-os.start-container-at-boot.sh
Normal file
7
scripts/turris-os.start-container-at-boot.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat <<EOF | tee -a '/etc/config/lxc-auto'
|
||||
config container
|
||||
option name alpine
|
||||
option timeout 60
|
||||
EOF
|
||||
Reference in New Issue
Block a user