refactor: moved scripts around

This commit is contained in:
Michele Cereda
2023-08-13 04:33:53 +02:00
parent c0ed267e08
commit d7c3732e17
6 changed files with 18 additions and 0 deletions

View 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

View File

@@ -0,0 +1,7 @@
#!/bin/sh
cat <<EOF | tee -a '/etc/config/lxc-auto'
config container
option name alpine
option timeout 60
EOF