mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
After bootstrap, drop to a shell if needed, then shut down cleanly
This commit is contained in:
parent
133c05426c
commit
8762f9567f
2 changed files with 23 additions and 0 deletions
22
steps/improve/after.sh
Normal file
22
steps/improve/after.sh
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# After bootstrap, drop to a shell if needed, then shut down cleanly.
|
||||
|
||||
. /steps/bootstrap.cfg
|
||||
. /steps/env
|
||||
|
||||
if [ "${INTERACTIVE}" = True ]; then
|
||||
env - PATH=${PREFIX}/bin PS1="\w # " bash -i
|
||||
fi
|
||||
|
||||
if [ "${CHROOT}" = False ]; then
|
||||
echo s > /proc/sysrq_trigger # force sync
|
||||
sleep 1
|
||||
echo u > /proc/sysrq_trigger # remount everything R/O
|
||||
sleep 1
|
||||
echo o > /proc/sysrq_trigger # power off
|
||||
fi
|
||||
|
|
@ -182,3 +182,4 @@ build: binutils-2.41
|
|||
build: gcc-13.1.0
|
||||
improve: null_time ( FORCE_TIMESTAMPS == True )
|
||||
improve: update_checksums ( UPDATE_CHECKSUMS == True )
|
||||
improve: after
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue