diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-06-11 08:39:29 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-06-11 08:39:29 +0200 |
| commit | 76c9d0aaa9bb734ad1ef32c1cd6a56461210010a (patch) | |
| tree | a25eeefdfaccd980ee82fb43c52f3b6737bc4ff6 /scripts/setup-config-alpine | |
| parent | 39fb7962ef35aa152d412322fd210be6ae462382 (diff) | |
| download | config-76c9d0aaa9bb734ad1ef32c1cd6a56461210010a.tar.gz config-76c9d0aaa9bb734ad1ef32c1cd6a56461210010a.zip | |
Better network management
Diffstat (limited to '')
| -rwxr-xr-x | scripts/setup-config-alpine | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/setup-config-alpine b/scripts/setup-config-alpine index 8ea2347..a013dcb 100755 --- a/scripts/setup-config-alpine +++ b/scripts/setup-config-alpine | |||
| @@ -62,7 +62,7 @@ doas mv "$tmp_xorg_file" /etc/X11/xorg.conf.d/40-libinput.conf | |||
| 62 | 62 | ||
| 63 | tmp_doas_file=$(mktemp) | 63 | tmp_doas_file=$(mktemp) |
| 64 | cp /etc/doas.d/20-wheel.conf "$tmp_doas_file" | 64 | cp /etc/doas.d/20-wheel.conf "$tmp_doas_file" |
| 65 | for c in poweroff reboot; do | 65 | for c in poweroff reboot ip udhcpc; do |
| 66 | printf 'permit nopass :wheel as root cmd %s\n' "$c" >> "$tmp_doas_file" | 66 | printf 'permit nopass :wheel as root cmd %s\n' "$c" >> "$tmp_doas_file" |
| 67 | done | 67 | done |
| 68 | doas cp "$tmp_doas_file" /etc/doas.d/20-wheel.conf | 68 | doas cp "$tmp_doas_file" /etc/doas.d/20-wheel.conf |
| @@ -116,6 +116,7 @@ NameResolvingService=resolvconf | |||
| 116 | EOF | 116 | EOF |
| 117 | 117 | ||
| 118 | doas mv "$tmp_iwd_file" /etc/iwd/main.conf | 118 | doas mv "$tmp_iwd_file" /etc/iwd/main.conf |
| 119 | doas cp /dev/null /etc/network/interfaces | ||
| 119 | 120 | ||
| 120 | doas rc-update add iwd boot | 121 | doas rc-update add iwd boot |
| 121 | doas rc-update del networking boot | 122 | doas rc-update del networking boot |
