From 3c04e4ce347dff915def3a79f348f2f46e60564d Mon Sep 17 00:00:00 2001 From: Martin Prochnow Date: Mon, 17 Apr 2006 17:00:18 +0200 Subject: =?UTF-8?q?Version=200.9a=20-=20fixed=20#ifdef's=20for=20JumpPlay-?= =?UTF-8?q?patch=20in=20myreplaycontrol.c;=20thanks=20to=20Thomas=20G?= =?UTF-8?q?=C3=BCnther=20for=20reporting=20-=20include=20fixed=20'dvdarchi?= =?UTF-8?q?ve.sh',=20umount=20wasn't=20possible;=20thanks=20to=20Mase=20fr?= =?UTF-8?q?om=20vdr-portal.de=20for=20reporting=20-=20added=20support=20fo?= =?UTF-8?q?r=20CmdSubMenu-patch,=20it=20should=20now=20be=20possible=20to?= =?UTF-8?q?=20use=20sub=20menus=20if=20you=20patched=20your=20VDR=20with?= =?UTF-8?q?=20BigPatch=20or=20CmdSubMenu-patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/dvdarchive.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/dvdarchive.sh b/scripts/dvdarchive.sh index 7f5b72b..f7bf066 100755 --- a/scripts/dvdarchive.sh +++ b/scripts/dvdarchive.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Version 1.4 2006-04-07 +# Version 1.5 2006-04-17 # # Exitcodes: # @@ -38,11 +38,15 @@ REC="$2" NAME="$3" call() { - echo -e "\nScript $0 needs three parameters. Action, rec and name. Action is mount or umount" + echo -e "\nScript $0 needs three parameters for mount and two for umount. The first must be mount or umount, the second is the full path.\n" + echo -e "Only for mounting the script needs a third parameter, the last part of the recording path.\n" echo -e "Example: dvdarchive.sh mount '/video1.0/Music/%Riverdance/2004-06-06.00:10.50.99.rec' '2004-06-06.00:10.50.99.rec'\n" + echo -e "Example: dvdarchive.sh umount '/video1.0/Music/%Riverdance/2004-06-06.00:10.50.99.rec'\n" } -[ $# -ne 3 ] && { call; exit 10; } +[ "$1" = "mount" -o "$1" = "umount" ] || { call; exit 10; } +[ -z "$2" ] && { call; exit 10; } +[ "$1" = mount -a -z "$3" ] && { call; exit 10; } case "$1" in mount) -- cgit v1.2.3