Skip to content

Commit

Permalink
snagrecover: am335x_usb_setup.sh: Use bash for the recovery shell
Browse files Browse the repository at this point in the history
Currently, the recovery shell is sh. However, on some Ubuntu systems, sh
links to dash, which doesn't make for the greatest user experience.

Change sh to bash for the recovery shell.

Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
  • Loading branch information
rgantois committed Jan 12, 2024
1 parent 5f4bbd1 commit be01566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snagrecover/am335x_usb_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ echo "===== $NETNS_NAME ====="
echo "You can now setup the board and run the recovery tool."
echo "Please type 'exit' to delete the namespace, stop the polling process and leave the shell when you are done."

echo "cd $(pwd); exec </dev/tty" | SUDO_PS1='(am335_recovery) \u@\h:\w \$' ip netns exec "$NETNS_NAME" sudo -i -u "$SUDOER" sh -i
echo "cd $(pwd); exec </dev/tty" | SUDO_PS1='(am335_recovery) \u@\h:\w \$' ip netns exec "$NETNS_NAME" sudo -i -u "$SUDOER" bash -i

#leave shell and cleanup
cleanup
Expand Down

0 comments on commit be01566

Please sign in to comment.