fix-startup

This commit is contained in:
simono41 2018-08-26 19:40:55 +02:00
parent 7842666831
commit b9aa30cede
2 changed files with 16 additions and 15 deletions

View file

@ -213,16 +213,6 @@ archiso_mount_handler() {
umount -d /run/archiso/bootmnt umount -d /run/archiso/bootmnt
fi 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 if [[ "${shell}" == "y" ]]; then

21
startup
View file

@ -1,14 +1,25 @@
#!/bin/bash #!/bin/bash
set -x
echo "Start!!!" echo "Start!!!"
date >> /startup.log date >> /startup.log
if [ -f /usr/bin/run ] startparameter=$(cat /proc/cmdline)
then
chmod +x /usr/bin/run # for-schleife
/usr/bin/run for wort in ${startparameter}
rm /usr/bin/run do
echo "$wort"
export ${wort%=*}=${wort#*=}
echo "Parameter ${wort%=*} = ${wort#*=}"
done
if [ -n "${run}" ]; then
echo "${run}"
sleep 5
${run}
fi fi
# Disable IPv6 # Disable IPv6