mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 11:30:37 +02:00
add custom autorun script support
This commit is contained in:
parent
9a4e53777c
commit
d85ba82a05
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ _run_update_installer() {
|
||||||
|
|
||||||
_run_autorun() {
|
_run_autorun() {
|
||||||
if rg -q 'autorun=' /proc/cmdline && [[ ! -e "${_LOCAL_DB}" ]]; then
|
if rg -q 'autorun=' /proc/cmdline && [[ ! -e "${_LOCAL_DB}" ]]; then
|
||||||
_REMOTE_AUTORUN="$(rg -o 'autorun=(.*sh)' -r '$1' /proc/cmdline)"
|
_REMOTE_AUTORUN="$(rg -o 'autorun=(.*/.*sh)' -r '$1' /proc/cmdline)"
|
||||||
echo -n "Trying 30 seconds to download ${_REMOTE_AUTORUN}..."
|
echo -n "Trying 30 seconds to download ${_REMOTE_AUTORUN}..."
|
||||||
_COUNT=""
|
_COUNT=""
|
||||||
while true; do
|
while true; do
|
||||||
|
|
Loading…
Reference in a new issue