raspi -> brain

This commit is contained in:
Takumi Sueda 2022-07-16 20:52:19 +09:00
parent cab14caada
commit 9f958410d2
2 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,8 @@
raspi-config is licensed under the terms of the MIT license reproduced below.
brain-config is licensed under the terms of the MIT license reproduced below.
#####################################################
Copyright (c) 2022 Brain Hackers
Copyright (c) 2012 Alex Bradbury <asb@asbradbury.org>
Permission is hereby granted, free of charge, to any person

View File

@ -1,6 +1,6 @@
#!/bin/sh
reboot_pi () {
reboot_brain () {
umount /boot
mount / -o remount,ro
sync
@ -101,7 +101,7 @@ main () {
fi
if [ "$ROOT_PART_END" -eq "$TARGET_END" ]; then
reboot_pi
reboot_brain
fi
if ! parted -m "$ROOT_DEV" u s resizepart "$ROOT_PART_NUM" "$TARGET_END"; then
@ -132,7 +132,7 @@ mount /boot -o remount,ro
sync
if ! check_commands; then
reboot_pi
reboot_brain
fi
if main; then
@ -143,4 +143,4 @@ else
sleep 5
fi
reboot_pi
reboot_brain