add custom autorun script support

This commit is contained in:
Tobias Powalowski 2024-08-31 15:00:03 +02:00
parent d85ba82a05
commit ac95416160

View file

@ -111,7 +111,7 @@ _run_update_installer() {
_run_autorun() {
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}..."
_COUNT=""
while true; do