23 lines
393 B
Bash
23 lines
393 B
Bash
|
#!/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
|