From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Sinom To: community@altlinux.ru Subject: Re: [Comm] geeXbox 0.95 Date: Thu, 11 Dec 2003 15:51:08 +0700 User-Agent: KMail/1.5.4 References: <20031209083622.337d2d67.noc_linux@mail.ru> <200312101239.28118.ngrechukh@ua.fm> <20031211095321.63a09b85.noc_linux@mail.ru> In-Reply-To: <20031211095321.63a09b85.noc_linux@mail.ru> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_8/C2/4VT+BNAh42" Message-Id: <200312111551.09052.sinom@ktk.ru> X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.3 Precedence: list Reply-To: community@altlinux.ru List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2003 13:00:13 -0000 Archived-At: List-Archive: List-Post: --Boundary-00=_8/C2/4VT+BNAh42 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: base64 Content-Disposition: inline PiA+ID4gzc7FIM7FIM7V1s7BINLV08nGycvBw8nRIM3FzsAsIM3OxSDO1dbOwSDQz8TExdLWy8Eg 0tXTy8nIIMnNxc4gxsHKzM/XLgo+ID4gPiDw0s/CzMXNwSDXINTPzSwg3tTPIMfJy9Mgzc/O1MnS 1cXUIMbB1M/X08vJyiDSwdrExcwgwsXaINXLwdrBzsnRCj4gPiA+IN7B0tPF1MEgySDLz8TP18/K INPU0sHOycPZLi4uIOEgx8TFINzUzyDOwdPU0s/J1Ngg0SDOxSDQz87RzC4uLgo+ID4KPiA+INcg aW5pdHJkIMnMySDF3cUgx8TFLdTPIM7BysTJ1MUsIMfExSDNz87UydLVxdQsINTBzSDQz9PUwdfY 1MUg09fPygo+ID4gY29kZXBhZ2UsIMkg3sHS08XUIDEyNTEgKNDP08vPzNjL1SDGz87U2SDXIM7F yikuCj4KPiDTzM/Wzs/T1Ngg1yDUz80sIN7UzyDOxdDPztHUzs8sIMfExSDJ08vB1Nggz9DDyckg zc/O1MnSz9fBzsnRLi4uCj4KCuXT1Ngg1MHLz8UuLi4g9MHNIM7JIGZzdGFiLCDOyd7Fx88g0M/I z9bFx88gzsXULiD3IMvB1MHMz8fFIC9ldGMgzMXWydQg18/UIAre1M86IGJmdHBkLmNvbmY7IGZ0 cF9jb25uZWN0OyBmdHBfZGlzY29ubmVjdDsgbW9kdWxlczsgbXBsYXllcjsgbmV0d29yazsgCnR2 c2V0dGluZ3MuIOEgaW5pdCwg1MHLINTP1CDXz8/C3cUg2sHQ1dTBzs7Zyi4g98/UIM3P1sXUxSDQ z9PNz9TSxdTYLgoKLS0K8s/Nwc4K --Boundary-00=_8/C2/4VT+BNAh42 Content-Type: application/x-shellscript; name="init" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="init" #!/bin/sh /bin/busybox test ! -e /proc/cpuinfo && /bin/busybox mount -t proc none /proc /bin/busybox test ! -e /bin/cp && /bin/busybox --install -s IFS_ORIG=$IFS if test -n "$CDROM"; then if test -z "`find "$CDROM" | grep -v /GEEXBOX/ | grep -i '\.\(avi\|divx\|asf\|wmv\|mpeg\|mpg\|mpe\|vob\|m2v\|mp4\|ogm\|mkv\|mka\|rm\|ra\|ram\|rmvb\|mov\|qt\|bin\|mp3\|mp2\|ogg\|wav\|wma\|y4m\|pls\|m3u\|asx\)$'`"; then test -f /proc/progress && echo "86 ejecting GeeXboX CD" > /proc/progress test -e /dev/cdrom -a ! -f /EXEC && eject & fi fi test -f /proc/progress && echo "87 launching modules" > /proc/progress for module in `cat /etc/modules`; do insmod $module >/dev/null 2>&1 done test -f /proc/progress && echo "93 setting tv-out" > /proc/progress tvauto test -f /proc/progress && echo "95 setting volume" > /proc/progress echo "" > /etc/asound.conf amixer sset Master 90% on >/dev/null 2>&1 amixer sset PCM 90% on >/dev/null 2>&1 amixer sset Surround 90% on >/dev/null 2>&1 amixer sset 'Surround Digital' 90% on >/dev/null 2>&1 amixer sset 'Wave Surround' 90% on >/dev/null 2>&1 amixer sset 'Duplicate Front' on >/dev/null 2>&1 amixer sset 'Sigmatel 4-Speaker Stereo' 90% on >/dev/null 2>&1 amixer sset 'IEC958 Output' 90% on >/dev/null 2>&1 test -f /proc/progress && echo "96 launching lirc daemon" > /proc/progress if test -f /etc/remote; then . /etc/remote cp -f /etc/lirc/lircrc_$REMOTE /etc/lircrc cp -f /etc/lirc/lircd_$REMOTE /etc/lircd cp -f /etc/lirc/lircd_$REMOTE.conf /etc/lircd.conf fi . /etc/lircd IFS='|' for module in $LIRC_MODULES; do insmod $module >/dev/null 2>&1 done IFS=$IFS_ORIG lircd --driver=$LIRC_DRIVER --device=$LIRC_DEVICE test "$DEBUG" = yes || rm -rf /lib/modules if test -f /etc/network; then echo "98 setting up networking" > /proc/progress ( . /etc/network test -z "$HOST" && HOST=0.0.0.0 if ifconfig eth0 $HOST >/dev/null 2>&1; then if test $HOST = 0.0.0.0; then udhcpc -H geexbox -n >/dev/null 2>&1 && NET=yes test "$NET" = yes || ifconfig eth0 192.168.0.54 && NET=yes else NET=yes fi if test "$NET" = yes; then if test -f /etc/bftpd.conf; then bftpd -d -c /etc/bftpd.conf fi if test -x /usr/bin/smbmount; then IFS=' ' for i in `smbtree -N | sed -n 's/.*\\\\\\\\\(.*\)\\\\\([^\ $]*\)\ .*/\1\/\2/p'`; do mkdir -p "/mnt/shares/$i" smbmount "//$i" "/mnt/shares/$i" -o ro,username=$USER,passwd=$PWD >/dev/null 2>&1 || rmdir -p "/mnt/shares/$i" >/dev/null 2>&1 done fi fi fi ) & fi test -f /proc/progress && echo "99 setting cdrom speed" > /proc/progress for DEV in /dev/scd*; do setcd -x 8 $DEV >/dev/null 2>&1 & done test -f /proc/progress && echo "100 launching mplayer" > /proc/progress cd /mnt if test -f /etc/lang; then . /etc/lang cp -f /etc/mplayer/menu_$LANG.conf /etc/mplayer/menu.conf cp -f /usr/share/mplayer/help_$LANG.txt /usr/share/mplayer/help.txt if test $LANG = cz -o $LANG = sk; then mv /usr/share/mplayer/font/iso-8859-2/* /usr/share/mplayer/font elif test $LANG = ru; then mv /usr/share/mplayer/font/koi8r/* /usr/share/mplayer/font else mv /usr/share/mplayer/font/iso-8859-1/* /usr/share/mplayer/font fi fi test -e /dev/dvd || ( sed 's/.*DVD.*//' /etc/mplayer/menu.conf > /etc/mplayer/menu.conf.new && mv /etc/mplayer/menu.conf.new /etc/mplayer/menu.conf ) for i in 'Class 0300:.*10de:' 'Class 0300:.*1039:' 'Class 0300:.*104a:0010'; do grep $i /proc/pci >/dev/null 2>&1 && sed 's/double=.*/double=no/' /etc/mplayer/mplayer.conf > /etc/mplayer/mplayer.conf.new && mv /etc/mplayer/mplayer.conf.new /etc/mplayer/mplayer.conf && echo 'vf=osd' >> /etc/mplayer/mplayer.conf done if test -e /usr/bin/autolaunch; then mkfifo /var/mp_control sh /usr/bin/autolaunch > /var/mp_control & fi /usr/bin/cpd & if test "$DEBUG" = yes; then sed 's%ok=\"halt\"/>%ok=\"halt\"/> %' "/etc/mplayer/menu.conf" > /etc/mplayer/menu.conf.new mv /etc/mplayer/menu.conf.new /etc/mplayer/menu.conf /bin/sh fi if test -x /usr/bin/gdb; then echo "r /usr/share/mplayer/background.avi -loop 0" > /gdb_cmd gdb -x /gdb_cmd /usr/bin/mplayer else while true; do mplayer -menu-disp /usr/share/mplayer/background.avi -loop 0 >/dev/null 2>&1 test $? -eq 166 && break done fi for DIR in /mnt/share/*/*; do test -d "$DIR" && umount "$DIR" >/dev/null 2>&1 && rmdir -p "$DIR" done if test -f /EXEC; then for DIR in /mnt/*; do test -d "$DIR" && umount "$DIR" >/dev/null 2>&1 done umount /proc fi --Boundary-00=_8/C2/4VT+BNAh42--