pxe: trying to fix autostart script
This commit is contained in:
parent
2a7af1ddab
commit
b2e82e7bb9
|
@ -263,15 +263,15 @@ prepare_app() {
|
||||||
|
|
||||||
# startup script execution
|
# startup script execution
|
||||||
cat > "${ISO_PATH}/chroot/root/.profile" <<END
|
cat > "${ISO_PATH}/chroot/root/.profile" <<END
|
||||||
|
set -x
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ -f /tmp/workbench_lock ]; then
|
if [ -f /tmp/workbench_lock ]; then
|
||||||
exit 0
|
return 0
|
||||||
else
|
else
|
||||||
touch /tmp/workbench_lock
|
touch /tmp/workbench_lock
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -x
|
|
||||||
set -e
|
|
||||||
|
|
||||||
stty -echo # Do not show what we type in terminal so it does not meddle with our nice output
|
stty -echo # Do not show what we type in terminal so it does not meddle with our nice output
|
||||||
dmesg -n 1 # Do not report *useless* system messages to the terminal
|
dmesg -n 1 # Do not report *useless* system messages to the terminal
|
||||||
# detect pxe env
|
# detect pxe env
|
||||||
|
|
Loading…
Reference in New Issue