6 echo 'usage: termux-vibrate [-f,--force] [<duration_ms>]'
7 echo 'Vibrate the device for the specified duration (default:1000 ms).'
8 echo 'By default no vibration is done when in silent mode - use the'
9 echo '-f,--force option to force vibration even when in silent mode.'
14 O
=`getopt -l duration: -l force -l help -- d:fh "$@"`
18 -d|
--duration
) PARAM_DURATION
="--ei duration_ms $2"; shift 2;;
19 -f|
--force
) PARAM_DURATION
="--ez force true"; shift 1;;
20 -h|
--help) show_usage
;;
22 *) echo Error
; exit 1;;
26 @TERMUX_API@ Vibrate
$PARAM_DURATION