diff options
| author | Alee <alee14498@gmail.com> | 2018-02-16 20:34:12 -0500 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-02-16 20:34:12 -0500 |
| commit | 0de20832b0a2919f799d14c6cad5579afe132bf3 (patch) | |
| tree | b2fc5eb6bbb5ffc604bcdae20cfa263346b72b5c /airootfs/root/.automated_script.sh | |
| parent | e8d6a6cd916351b86070254d739e4932841aed35 (diff) | |
| download | Project-Caelus-0de20832b0a2919f799d14c6cad5579afe132bf3.tar.gz Project-Caelus-0de20832b0a2919f799d14c6cad5579afe132bf3.tar.bz2 Project-Caelus-0de20832b0a2919f799d14c6cad5579afe132bf3.zip | |
Moved files
Diffstat (limited to 'airootfs/root/.automated_script.sh')
| -rwxr-xr-x | airootfs/root/.automated_script.sh | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/airootfs/root/.automated_script.sh b/airootfs/root/.automated_script.sh deleted file mode 100755 index 81a98a1..0000000 --- a/airootfs/root/.automated_script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -script_cmdline () -{ - local param - for param in $(< /proc/cmdline); do - case "${param}" in - script=*) echo "${param#*=}" ; return 0 ;; - esac - done -} - -automated_script () -{ - local script rt - script="$(script_cmdline)" - if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then - if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then - wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null - rt=$? - else - cp "${script}" /tmp/startup_script - rt=$? - fi - if [[ ${rt} -eq 0 ]]; then - chmod +x /tmp/startup_script - /tmp/startup_script - fi - fi -} - -if [[ $(tty) == "/dev/tty1" ]]; then - automated_script -fi |
