Difference between revisions of "Code sources - S00custom-options source code"

From WikiDLXTV
Jump to: navigation, search
(Created page with '#!/bin/sh # DEVID="<external storage id>" #type deluge config folder DELUGECONFIG="<deluge config folder>" case "$1" in start|restart) $0 waitfordevice& ;; waitfordevice) DE…')
 
(Blanked the page)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#!/bin/sh
 
  
#
 
DEVID="<external storage id>"
 
#type deluge config folder
 
DELUGECONFIG="<deluge config folder>"
 
 
case "$1" in
 
start|restart)
 
$0 waitfordevice&
 
;;
 
waitfordevice)
 
DEVROOT=""
 
while [ "$DEVROOT" = "" ] ; do
 
DEVROOT="`mount | grep $DEVID | sed 's/^[/]dev[/].*[ ]on[ ]//g' | sed 's/[ ]type[ ]ext3.*//g'`"
 
#echo $DEVROOT
 
sleep 3
 
done
 
$DEVROOT/$DELUGECONFIG/deluge.script start $DEVROOT/$DELUGECONFIG
 
config_tool -c POWER_DOWN_ACTION10="$DEVROOT/power.down $DELUGECONFIG"
 
#echo "$DEVROOT/$DELUGECONFIG/deluge.script start $DEVROOT/$DELUGECONFIG"
 
#echo "config_tool -c POWER_DOWN_ACTION10="$DEVROOT/power.down $DELUGECONFIG""
 
;;
 
esac
 

Latest revision as of 16:38, 17 April 2010