From b9aa30cede24f6039cbee1ce218f54a7caa6d2e1 Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 26 Aug 2018 19:40:55 +0200 Subject: [PATCH] fix-startup --- hooks/archiso | 10 ---------- startup | 21 ++++++++++++++++----- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/hooks/archiso b/hooks/archiso index 58b775d..4101640 100755 --- a/hooks/archiso +++ b/hooks/archiso @@ -213,16 +213,6 @@ archiso_mount_handler() { umount -d /run/archiso/bootmnt fi - mkdir -p -m 755 "/run/archiso/cowspace/${cow_directory}/upperdir/usr/bin" - if [[ -n "${run}" ]]; then - echo ":: running ${run}" - echo ${run} > /run/archiso/cowspace/${cow_directory}/upperdir/usr/bin/run - else - if [ -f "/run/archiso/cowspace/${cow_directory}/upperdir/usr/bin/run" ] - then - rm /run/archiso/cowspace/${cow_directory}/upperdir/usr/bin/run - fi - fi } if [[ "${shell}" == "y" ]]; then diff --git a/startup b/startup index 0acf54c..c1e0e89 100755 --- a/startup +++ b/startup @@ -1,14 +1,25 @@ #!/bin/bash +set -x + echo "Start!!!" date >> /startup.log -if [ -f /usr/bin/run ] -then - chmod +x /usr/bin/run - /usr/bin/run - rm /usr/bin/run +startparameter=$(cat /proc/cmdline) + +# for-schleife + for wort in ${startparameter} + do + echo "$wort" + export ${wort%=*}=${wort#*=} + echo "Parameter ${wort%=*} = ${wort#*=}" + done + +if [ -n "${run}" ]; then +echo "${run}" +sleep 5 +${run} fi # Disable IPv6