launch unattended.sh after cleanup
This commit is contained in:
parent
134360420b
commit
089996a528
Binary file not shown.
|
@ -97,13 +97,6 @@ cat <<-EOF >> /etc/conf.d/sshd
|
||||||
|
|
||||||
rc-service sshd start
|
rc-service sshd start
|
||||||
|
|
||||||
if [ -f "${ovlpath}/unattended.sh" ]; then
|
|
||||||
install -m755 "${ovlpath}/unattended.sh" /tmp/unattended.sh
|
|
||||||
/tmp/unattended.sh >/dev/console 2>&1 &
|
|
||||||
logger -st ${0##*/} "/tmp/unattended.sh script launched in the background with PID $!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
## Prep for final post-cleanup
|
## Prep for final post-cleanup
|
||||||
cat <<-EOF > /tmp/.trash/post-cleanup
|
cat <<-EOF > /tmp/.trash/post-cleanup
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
@ -115,6 +108,12 @@ cat <<-EOF > /tmp/.trash/post-cleanup
|
||||||
rc-update del local default
|
rc-update del local default
|
||||||
rm /etc/local.d/headless.start
|
rm /etc/local.d/headless.start
|
||||||
|
|
||||||
|
if [ -f "${ovlpath}/unattended.sh" ]; then
|
||||||
|
install -m755 "${ovlpath}/unattended.sh" /tmp/unattended.sh
|
||||||
|
/tmp/unattended.sh >/dev/console 2>&1 &
|
||||||
|
logger -st ${0##*/} "/tmp/unattended.sh script launched in the background with PID \$!"
|
||||||
|
fi
|
||||||
|
|
||||||
logger -st ${0##*/} "Done !!"
|
logger -st ${0##*/} "Done !!"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue