Code sources - S00custom-options source code

From WikiDLXTV
Revision as of 12:47, 12 March 2010 by Mimikino (Talk | contribs) (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…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. !/bin/sh

DEVID="<external storage id>"

  1. 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