gentoo-overlay/app-admin/admincd-autoinstall/files/run-autoinstall.sh

30 lines
484 B
Bash
Raw Normal View History

2020-06-04 20:54:46 +03:00
#!/bin/bash
# get_bootparam_val() {
# # We're given something like:
# # foo=bar=cow
# # Return the "bar=cow" part.
# case $1 in
# *=*)
# ;;
# esac
# }
2020-06-05 17:35:15 +03:00
for i in {15..01}
do
tput cup 10 $l
echo -n "Autoinstall will begin in $i seconds"
sleep 1
done
2020-06-04 20:54:46 +03:00
for x in $(cat /proc/cmdline); do
case "${x}" in
ks=*) AUTOINSTALL_PATH="${x#*=}"
2020-06-04 20:54:46 +03:00
;;
esac
done
if [ -n "${AUTOINSTALL_PATH}" ]; then
curl -sfL "${AUTOINSTALL_PATH}" | sh -
fi