add scripts

This commit is contained in:
Your Name
2025-05-22 08:39:49 +00:00
parent 29c5beeb7b
commit 3605885994
3 changed files with 107 additions and 50 deletions

View File

@@ -2,17 +2,20 @@
_board_name=$1
_mount_dir=$2
echo "INFO: Stop Servod"
stop-servod
if [ -z "$_board_name" ]; then
echo "please enter board namd and mount dir"
exit 1
fi
if [ -z "$_mount_dir" ]; then
echo "start servod without share folder mounted"
echo "please enter mount dir, I usually using the dir /home/${USER}/chrome/ToT/src/scripts"
echo "start-servod --channel=release --mount=${_mount_dir}:/tmp/firmware_to_flash -n flashing_servod --board=${_board_name} -p 9999"
echo "INFO: start servod without share folder mounted"
echo "INFO: please enter mount dir, I usually using the dir /home/${USER}/chrome/ToT/src/scripts"
echo "INFO: start-servod --channel=release --mount=${_mount_dir}:/tmp/firmware_to_flash -n flashing_servod --board=${_board_name} -p 9999"
start-servod --channel=release --board=${_board_name} -p 9999
else
echo "start-servod --channel=release --mount=${_mount_dir}:/tmp/firmware_to_flash -n flashing_servod --board=${_board_name} -p 9999"
echo "INFO: start-servod --channel=release --mount=${_mount_dir}:/tmp/firmware_to_flash -n flashing_servod --board=${_board_name} -p 9999"
start-servod --channel=release --mount=${_mount_dir}:/tmp/firmware_to_flash -n flashing_servod --board=${_board_name} -p 9999
fi