forked from ArduPilot/companion
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to boot into recovery partition
- Loading branch information
1 parent
c797b96
commit 37c9649
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
#Replace the companion partition number with Recovery partition number in /boot/cmdline.txt | ||
#Enables booting into the Recovery partition and accessing the Recovery server. | ||
|
||
sudo -H -u root bash -c "sed -i -e 's/\-04/\-02/' /boot/cmdline.txt" | ||
|
||
#Reboot into Recovery partition | ||
sudo reboot now |