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
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

21
startup
View file

@ -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