summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-06-18 18:37:36 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-06-19 08:31:45 +0200
commit090d3e1dd5c66460768f1959e59923e26d49145c (patch)
treec3dd5609f7cf06d5ab48d0bc43d1714ec6309b85 /scripts
parent261d56d343386e520a752281a671028e708960bc (diff)
downloadconfig-090d3e1dd5c66460768f1959e59923e26d49145c.tar.gz
config-090d3e1dd5c66460768f1959e59923e26d49145c.zip
mount umount no psw
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/setup-config-alpine2
-rwxr-xr-xscripts/uncolor6
2 files changed, 7 insertions, 1 deletions
diff --git a/scripts/setup-config-alpine b/scripts/setup-config-alpine
index 414e5be..ab2ef60 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
63tmp_doas_file=$(mktemp) 63tmp_doas_file=$(mktemp)
64cp /etc/doas.d/20-wheel.conf "$tmp_doas_file" 64cp /etc/doas.d/20-wheel.conf "$tmp_doas_file"
65for c in poweroff reboot ip udhcpc; do 65for c in poweroff reboot ip udhcpc mount umount; 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"
67done 67done
68doas cp "$tmp_doas_file" /etc/doas.d/20-wheel.conf 68doas cp "$tmp_doas_file" /etc/doas.d/20-wheel.conf
diff --git a/scripts/uncolor b/scripts/uncolor
new file mode 100755
index 0000000..81fa743
--- /dev/null
+++ b/scripts/uncolor
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3# Removes ANSI color codes from its stdin, prints to stdout.
4# Source: https://stackoverflow.com/questions/17998978/removing-colors-from-output
5
6sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g'

Generated with cgit - Back to sebastiano.tronto.net