Mvploader
Aus VDR Wiki
(Unterschied zwischen Versionen)
K |
K |
||
Zeile 10: | Zeile 10: | ||
# | # | ||
# Start or stop the mvploader | # Start or stop the mvploader | ||
− | |||
− | FIRMWARE= | + | FIRMWARE=/tftpboot/dongle.bin |
+ | MVPLOADER=/usr/bin/mvploader | ||
− | + | test -x $MVPLOADER || exit 0 | |
− | + | ||
− | test - | + | |
[ -f /etc/default/rcS ] && . /etc/default/rcS | [ -f /etc/default/rcS ] && . /etc/default/rcS | ||
Zeile 23: | Zeile 21: | ||
start) | start) | ||
echo -n "Starting mvp loader daemon: " | echo -n "Starting mvp loader daemon: " | ||
− | start-stop-daemon --start --quiet -b --exec | + | start-stop-daemon --start --quiet -b --exec $MVPLOADER -- \ |
$FIRMWARE | $FIRMWARE | ||
if [ $? = 0 ]; then | if [ $? = 0 ]; then | ||
Zeile 34: | Zeile 32: | ||
echo -n "Stopping mvp loader daemon: " | echo -n "Stopping mvp loader daemon: " | ||
start-stop-daemon --stop --retry=1 --quiet --oknodo \ | start-stop-daemon --stop --retry=1 --quiet --oknodo \ | ||
− | --exec | + | --exec $MVPLOADER |
echo "mvploader." | echo "mvploader." | ||
;; | ;; |
Aktuelle Version vom 28. März 2006, 10:09 Uhr
Der MVP-Loader ist ein Programm, welches als BOOTP/TFTP Server der Hauppauge Media MVP per Boot On Lan den Kernel sendet.
Den Quelltext gibt es unter http://bluecherry.net/~other/mediamvp/files , das hier verwendete c-Programm unter http://bluecherry.net/~other/mediamvp/files/mvploader-1.0.c.gz
Hier ein kleines Start-Stop Script für den Init-Prozess:
#!/bin/sh # # Start or stop the mvploader FIRMWARE=/tftpboot/dongle.bin MVPLOADER=/usr/bin/mvploader test -x $MVPLOADER || exit 0 [ -f /etc/default/rcS ] && . /etc/default/rcS case "$1" in start) echo -n "Starting mvp loader daemon: " start-stop-daemon --start --quiet -b --exec $MVPLOADER -- \ $FIRMWARE if [ $? = 0 ]; then echo "mvploader." else echo "(failed.)" fi ;; stop) echo -n "Stopping mvp loader daemon: " start-stop-daemon --stop --retry=1 --quiet --oknodo \ --exec $MVPLOADER echo "mvploader." ;; restart|force-reload) $0 stop && $0 start exit ;; *) echo "Usage: /etc/init.d/mvploader {start|stop|restart|force-reload}" exit 1 ;; esac exit 0