diff --git a/tools/radioctl b/tools/radioctl index 89b5b9d..09681f9 100644 --- a/tools/radioctl +++ b/tools/radioctl @@ -14,7 +14,7 @@ case $1 in cut -c 31- | sort -d > $radio_dir/playlists/all break ;; - pe | playlist-ezstream) + ep | ez-playlist) find -L $radio_dir/music/* -type f -iname '*.ogg' | sort -d > $radio_dir/playlists/all break @@ -44,13 +44,23 @@ case $1 in paste -s -d+ - | bc break ;; + er | ez-reload) + pkill -HUP ezstream + break + ;; + dr | dw-reload) + pkill -HUP dwelling-radio + break + ;; *) echo "f|ilelist - to generate a filelist.html" echo "p|laylist - to generate a playlist 'all'" - echo "pe|playlist-ezstream - to generate a playlist 'all' with full paths" + echo "ep|ez-playlist- - to generate a playlist 'all' with full paths" echo "s|huffle - to shuffle a playlist and store as all-rand" echo "c|onvert DIR - convert all files in DIR to ogg" echo "d|uration - get total songs' duration" + echo "er|ez-reload - send SIGHUP to ezstream to reload a playlist" + echo "dr|dw-reload - send SIGHUP to dwelling-radio to reload a playlist" exit ;; esac \ No newline at end of file