Initial commit
Some checks are pending
basementhud/pipeline/head This commit looks good
fedora-pi-netboot/pipeline/head Build started...

This commit is contained in:
2022-03-18 23:31:41 -05:00
commit 778fb9ec7b
47 changed files with 3099 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/sh
enable_unit() {
mkdir -p "${normaldir}"/multi-user.target.wants
ln -s /lib/systemd/system/"$1" "${normaldir}"/multi-user.target.wants/
}
normaldir="$1"
# shellcheck disable=SC2034
earlydir="$2"
# shellcheck disable=SC2034
latedir="$3"
# shellcheck disable=SC2046
set -- $(cat /proc/cmdline)
while [ $# -ge 1 ]; do
case "$1" in
sshkeys.*=*)
arg=${1#*.}
user=${arg%=*}
enable_unit fetch-sshkeys@"${user}".service
;;
esac
shift
done