#!/bin/sh
##
## in this file you can enter commands that will be executed with the init.d scripts
## typos / syntax errors will prevent the osd from booting
## this file is only executed if it is at the root of an attached device at boot
##
## this file is executed when the wdtv starts/boots up AND when /usr/sbin/resume is called
## so operations placed here should not be adversely affected by multiple execution
## the above applies if you utilize /conf/S00user-script as well
##
## several examples are provided below, uncomment (delete #) them to use
##
## config_tool commands only need to be executed _once_ then they can be re-commented
##
## change background image between 3 stock options
##
## original background:
#config_tool -c BACKGROUND_IMAGE=original_bg.jpg
Ceci est le fond d’écran « parquet » d’origine ## eM82's backdrop background:
#config_tool -c BACKGROUND_IMAGE=eM82_bg.jpg
## wood panel (default) background:
#config_tool -c BACKGROUND_IMAGE=villa_bg.jpg
Ceci est le fond d’écran d’origine du WD Live TV (pour revenir à l’original enlevez # devant config tool de cette ligne) ## some random location (absolute)
#config_tool -c BACKGROUND_IMAGE=/tmp/media/usb/some/random/location.jpg
## Movie sheet modes (only one can be enabled at a time)
## unless you have sheets for each mode you will encounter oddities switching around modes
## AKA this isn't magic
## Full screen std mode:
#config_tool -c MSHEETMODE=std
## 1280x460 sheet mode:
#config_tool -c MSHEETMODE=sheet
Voici la ligne qui nous intéresse ## 500x720 wall mode:
#config_tool -c MSHEETMODE=wall
## turn on moviesheets for a list type
## you must turn it on for a view type to see sheets!
## video thumb mode
#config_tool -c VIDMSHEET=ON
Voici la ligne qui nous intéresse ## audio/photo thumb mode
#config_tool -c GENMSHEET=ON
Voici la ligne qui nous intéresse ## list mode (video/audio/photo)
#config_tool -c LISTMSHEET=ON
Voici la ligne qui nous intéresse ## change list view to 4/6/8/11 entries
#config_tool -c LISTNUM=4
#config_tool -c LISTNUM=6
#config_tool -c LISTNUM=8
#config_tool -c LISTNUM=10 (default)
#config_tool -c LISTNUM=11
#config_tool -c LISTNUM=12
## change video thumb view to various amounts of thumbs
#config_tool -c THUMBRESO=120x160 # 21
#config_tool -c THUMBRESO=150x200 # 12
#config_tool -c THUMBRESO=163x245 # 8 (default)
#config_tool -c THUMBRESO=180x240 # 10
#config_tool -c THUMBRESO=225x300 # 4
#config_tool -c THUMBRESO=240x360 # 4
## change music/photo thumb view to 10/15 thumbs
#config_tool -c GENTHUMBS=10 # 10
#config_tool -c GENTHUMBS=15 # 15 (default)
## change video info overlay
## ( for subtitle viewing during pause/timing/etc)
## requires reboot after change
## upper ~60%
#config_tool -c VIDEO_INFO_BAR=2
## top (warning: options bar covers up info overlay with setting 3)
#config_tool -c VIDEO_INFO_BAR=3
## change subtitle size to one not menu-selectable
#config_tool -c SUBTITLE_FONT_SIZE=44
#config_tool -c SUBTITLE_FONT_SIZE=48
#config_tool -c SUBTITLE_FONT_SIZE=50
#config_tool -c SUBTITLE_FONT_SIZE=52
#config_tool -c SUBTITLE_FONT_SIZE=56
#config_tool -c SUBTITLE_FONT_SIZE=60
#config_tool -c SUBTITLE_FONT_SIZE=64
#config_tool -c SUBTITLE_FONT_SIZE=68
#config_tool -c SUBTITLE_FONT_SIZE=72
#config_tool -c SUBTITLE_FONT_SIZE=76
#config_tool -c SUBTITLE_FONT_SIZE=80
## permanently set timezone
##
http://www.timeanddate.com/library/abbr ... timezones/## below is for Pacific North America
#config_tool -c TIMEZONE=PST8PDT
## permanently set hostname
#config_tool -c DEVICE_NAME=SomeHostName
## use custom USB slot icons
#config_tool -c USBICONS='yes'
## disable telnet server
#config_tool -c TELNETD=OFF
## disable pure-ftpd server
#config_tool -c FTPD=OFF
## disable dropbear ssh server
#config_tool -c SSHD=OFF
## disable keep alive of ethernet during WDTV Live standby
#config_tool -c DISABLE_ETHERNET_ON_STANDBY=YES
## delay net.mounts execution in case of wireless adapter usage and shares not showing up
#config_tool -c NET_MOUNTS_DELAY=30
## enable NTP (network time)
## if you use a wireless adapter you will also have to set WIRELESS_DRIVER
#### *** ONLY with wireless: NTP adds ~20s to the initial boot of the device ***
#### *** due to the bringing up and acquisition of wireless network address ***
## -- if NTP fails because of slow address acquire you can increase delay to NTP_DELAY
#config_tool -c NTP=ON
## custom NTP server
#config_tool -c NTPSERVER=pool.ntp.org
## NTP delay is seconds (in case of slow wireless adapter)
#config_tool -c NTP_DELAY=0
## to set NTP with wireless adapters:
## (choose the proper one)
#config_tool -c WIRELESS_DRIVER=rt2870sta
#config_tool -c WIRELESS_DRIVER=rt3070sta
#config_tool -c WIRELESS_DRIVER=rt3572sta
## Disable mt-daapd digital audio server (saves ~10MB ram)
#config_tool -c MT-DAAPD=OFF
## Disable UMSP (default enabled - REQUIRES LIGHTTPD=ON TO WORK)
#config_tool -c UMSP=OFF
## Disable lighttpd webserver (default enabled)
#config_tool -c LIGHTTPD=OFF
## enable Deluge bittorrent client (default disabled)
## *** lighttpd webserver must be enabled to use webui ***
#config_tool -c DELUGE=ON
## disable Deluge bittorrent webui
#config_tool -c DELUGEWEBUI=OFF
## Enable nzbget usenet client (default disabled)
## *** lighttpd webserver must be enabled to use webui ***
#config_tool -c NZBGET=ON
## Disable online-delayer (in case of stalled network detection)
## or because nzbget / Deluge / net.mounts won't execute
#config_tool -c ONLINEDELAYER=OFF
## power actions are executed when the OSD is suspended/resumed
## ***NOT*** executed when your wdtv live comes on from cold boot / power cycle
## executed when:
## -----the wdtv live goes into standby via remote
## -----the wdtv live wakes up from suspend via remote
## --use S00custom-options or S00user-script for actions that happen at boot
## *** DO NOT EXECUTE usb.power.on OR usb.power.off IN ETHERNET ACTIONS *** SEE USB_POWER_OFF setting ***
## [you may have number actions which are executed in order]
##
#config_tool -c POWER_UP_ACTION='logger -t "power_up_action" "I am doing something"
#config_tool -c POWER_UP_ACTION20='sleep 5; ether-wake -b xx:xx:xx:xx:xx:xx; sleep 10; /etc/init.d/S90net.mounts start'
#config_tool -c POWER_DOWN_ACTION='logger -t "power_down_action" "the OSD has been suspended!"'
## Enable/Disable Samba Windows share server (default: OFF)
## ON:
#config_tool -c ENABLE_SAMBA_SHARE=1
## OFF:
#config_tool -c ENABLE_SAMBA_SHARE=0
## Change SMB resolve order to 'proper' order
## YMMV
## this MUST contain either valid settings or be blank
## stock/official firmware order:
#config_tool -c SMB_RESOLVEORDER='bcast lmhosts wins host'
## proper/corrected order:
#config_tool -c SMB_RESOLVEORDER='lmhosts host wins bcast'
## Change Samba share export to not allow guest (anonymous) mounting
## smbpasswd is stored in /conf
##### to set Samba password for user root, ssh in and enter a password after you execute:
##### smbpasswd -c /tmp/smb2.conf -a root
#config_tool -c SAMBA_SERVER_PROTECTION_STATE=1
## Disable/enable Samba exported shares on standby (default: ON)
#config_tool -c SMB_STANDBY=OFF
## Disable/enable Samba auto export mode (default: ON)
#config_tool -c SMBD_AUTO=OFF
## set Samba Workgroup
#config_tool -c SAMBA_WORKGROUP=SomeWorkgroup
## Enable NFSD kernel NFS server (default: OFF)
#config_tool -c NFSD=ON
## Enable NFSD auto export mode (default: OFF)
## (requires NFSD_AUTO_DEFAULT)
## (overrides /conf/exports)
#config_tool -c NFSD_AUTO=ON
## NFSD auto export mode default setting
#config_tool -c NFSD_AUTO_DEFAULT='192.168.0.234(rw,async,no_subtree_check) 192.168.0.199(rw,async,no_subtree_check)'
## turns off 5V to USB Bus on standby (when you press power off on remote)
## this action is prevented by the following:
## - root.bin active
## - OSD Theme active
## - Optware active
## - app.bin active
## - Deluge or NZBget enabled
#config_tool -c USB_POWER_OFF=1
## Select one of the extra translations, that is not selectable from the language options
## Only possible to set ONE locale
## Choices:
## - Netherlands: nl
## - Greece: gr
#config_tool -c LOCALE=nl
#config_tool -c lOCALE=gr
## enable YouTube Switcher (You can only use one at a time!)
## to enable YouTubeHD:
#config_tool -c YOUTUBE_SWITCHER=youtubeHD
## to enable EasyNews XViD proxy:
#config_tool -c YOUTUBE_SWITCHER=easynews
## to disable YouTube Switcher:
#config_tool -c YOUTUBE_SWITCHER=''
## EasyNews YouTube Switcher settings
#config_tool -c EASYNEWS_USER=user
#config_tool -c EASYNEWS_PASSWORD=password
## youtubeHD YouTube Switcher quality setting
#config_tool -c YOUTUBE_QUALITY=270P
#config_tool -c YOUTUBE_QUALITY=360P
#config_tool -c YOUTUBE_QUALITY=480P
#config_tool -c YOUTUBE_QUALITY=720P
#config_tool -c YOUTUBE_QUALITY=1080P
## Live365 Switcher (You can only use one at a time!)
## to enable Shoutcast
#config_tool -c LIVE365_SWITCHER=shoutcast
## go back to live365
#config_tool -c LIVE365_SWITCHER=''
## EIRI (remote control remapping & action)
## requires /conf/eiri.conf or eiri.conf on device at boot
#config_tool -c EIRI=ON
## extra NLS / codepage packages (for non-english character filesystems)
##
## NLS packages (default utf8)
#config_tool -c IOCHARSET=utf8
#config_tool -c IOCHARSET=ascii
#config_tool -c IOCHARSET=euc-jp
#config_tool -c IOCHARSET=iso8859-13
#config_tool -c IOCHARSET=iso8859-14
#config_tool -c IOCHARSET=iso8859-15
#config_tool -c IOCHARSET=iso8859-2
#config_tool -c IOCHARSET=iso8859-3
#config_tool -c IOCHARSET=iso8859-4
#config_tool -c IOCHARSET=iso8859-5
#config_tool -c IOCHARSET=iso8859-6
#config_tool -c IOCHARSET=iso8859-7
#config_tool -c IOCHARSET=iso8859-9
#config_tool -c IOCHARSET=koi8-r
#config_tool -c IOCHARSET=koi8-ru
#config_tool -c IOCHARSET=koi8-u
## codepage packages (default cp437)
#config_tool -c CODEPAGE=cp1250
#config_tool -c CODEPAGE=cp1251
#config_tool -c CODEPAGE=cp1255
#config_tool -c CODEPAGE=cp437
#config_tool -c CODEPAGE=cp737
#config_tool -c CODEPAGE=cp775
#config_tool -c CODEPAGE=cp850
#config_tool -c CODEPAGE=cp852
#config_tool -c CODEPAGE=cp855
#config_tool -c CODEPAGE=cp857
#config_tool -c CODEPAGE=cp860
#config_tool -c CODEPAGE=cp861
#config_tool -c CODEPAGE=cp862
#config_tool -c CODEPAGE=cp863
#config_tool -c CODEPAGE=cp864
#config_tool -c CODEPAGE=cp865
#config_tool -c CODEPAGE=cp866
#config_tool -c CODEPAGE=cp869
#config_tool -c CODEPAGE=cp874
#config_tool -c CODEPAGE=cp932
#config_tool -c CODEPAGE=cp936
#config_tool -c CODEPAGE=cp949
#config_tool -c CODEPAGE=cp950