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> Copyright (c) 2012 Alex Bradbury <asb@asbradbury.org>
Permission is hereby granted, free of charge, to any person Permission is hereby granted, free of charge, to any person

View File

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