mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
raspi -> brain
This commit is contained in:
parent
cab14caada
commit
9f958410d2
3
LICENSE
3
LICENSE
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user