mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Use 'reboot' on initial resize instead of sysrq emergency reboot
This commit is contained in:
parent
ce8119fc39
commit
fd250bd0a3
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
raspi-config (20211103) bullseye; urgency=medium
|
||||
|
||||
* Use 'reboot' on initial resize instead of sysrq emergency reboot
|
||||
|
||||
-- Serge Schneider <serge@raspberrypi.com> Wed, 03 Nov 2021 17:50:52 +0000
|
||||
|
||||
raspi-config (20211019) bullseye; urgency=medium
|
||||
|
||||
* Add switching of glamor acceleration
|
||||
|
@ -7,11 +7,12 @@ reboot_pi () {
|
||||
if [ "$NOOBS" = "1" ]; then
|
||||
if [ "$NEW_KERNEL" = "1" ]; then
|
||||
reboot -f "$BOOT_PART_NUM"
|
||||
sleep 5
|
||||
else
|
||||
echo "$BOOT_PART_NUM" > "/sys/module/${BCM_MODULE}/parameters/reboot_part"
|
||||
fi
|
||||
fi
|
||||
echo b > /proc/sysrq-trigger
|
||||
reboot -f
|
||||
sleep 5
|
||||
exit 0
|
||||
}
|
||||
@ -193,8 +194,6 @@ fi
|
||||
mount /boot -o remount,ro
|
||||
sync
|
||||
|
||||
echo 1 > /proc/sys/kernel/sysrq
|
||||
|
||||
if ! check_commands; then
|
||||
reboot_pi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user