index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | nl6720 <nl6720@gmail.com> | 2022-12-06 14:20:30 +0200 |
---|---|---|
committer | nl6720 <nl6720@gmail.com> | 2023-06-15 15:12:28 +0300 |
commit | 28a3a54c5f28e40a935609de9b092fe0c1cfee24 (patch) | |
tree | d65be4ebbacca79c995bc2ae8133455717be7352 /configs/releng/airootfs/root/.automated_script.sh | |
parent | 40dbfcfaf0a06a5c8e92a1d5183d8ae4e4634835 (diff) |
-rwxr-xr-x | configs/releng/airootfs/root/.automated_script.sh | 13 |
diff --git a/configs/releng/airootfs/root/.automated_script.sh b/configs/releng/airootfs/root/.automated_script.sh index f257537..8e72bf7 100755 --- a/configs/releng/airootfs/root/.automated_script.sh +++ b/configs/releng/airootfs/root/.automated_script.sh @@ -1,17 +1,18 @@ #!/usr/bin/env bash -script_cmdline () -{ +script_cmdline() { local param - for param in $(< /proc/cmdline); do + for param in $(</proc/cmdline); do case "${param}" in - script=*) echo "${param#*=}" ; return 0 ;; + script=*) + echo "${param#*=}" + return 0 + ;; esac done } -automated_script () -{ +automated_script() { local script rt script="$(script_cmdline)" if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then |