add autoinstall ebuild
This commit is contained in:
12
app-admin/admincd-autoinstall/files/init.d.autoinstall-r1
Executable file
12
app-admin/admincd-autoinstall/files/init.d.autoinstall-r1
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
name="autoinstall daemon"
|
||||
description="Unattended installation support for Admin CD"
|
||||
command=/usr/sbin/run-autoinstall.sh
|
||||
command_args="${autoinstall_args}"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
22
app-admin/admincd-autoinstall/files/run-autoinstall.sh
Executable file
22
app-admin/admincd-autoinstall/files/run-autoinstall.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# get_bootparam_val() {
|
||||
# # We're given something like:
|
||||
# # foo=bar=cow
|
||||
# # Return the "bar=cow" part.
|
||||
# case $1 in
|
||||
# *=*)
|
||||
|
||||
# ;;
|
||||
# esac
|
||||
# }
|
||||
|
||||
for x in $(cat /proc/cmdline); do
|
||||
case "${x}" in
|
||||
autoinstall=*) AUTOINSTALL_PATH="${x#*=}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [ -n "${AUTOINSTALL_PATH}" ]; then
|
||||
curl -sfL "${AUTOINSTALL_PATH}" | sh -
|
||||
fi
|
||||
Reference in New Issue
Block a user