add scripts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user