1
Raspberry PI / vompclient beim Booten starten
« on: October 09, 2016, 15:08:23 »
Danke, damit habe ich Optionen.
Grüße, Kleo
Grüße, Kleo
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#!/bin/sh
. /etc/init.d/rc.functions
case "$1" in
start)
if [ "$VOMPCLIENT_SEARCH_SERVER" = "1" ] && ! ps ww | grep -v "grep" | grep "vdr" | grep -q "vompserver"; then
$0 scan
fi
;;
scan)
echo "Search for vompserver:"
rm -f /tmp/vompserver_ip
IP=${NETWORK_IP%.*}
i=0
while [ $i -lt 254 -a ! -e /tmp/vompserver_ip ]; do
i=$(($i+1))
if [ "$IP.$i" != "$NETWORK_IP" ]; then
test $(($i%10)) = 1 && echo -en "\r Scaning: $(show_step) \r" >/dev/console
(echo quit | nc $IP.$i 3024 2>/dev/null | grep -q 220 && echo "$IP.$i" > /tmp/vompserver_ip) 2>/dev/null &
fi
done
i=0
while [ $i -lt 50 -a ! -e /tmp/vompserver_ip ]; do
i=$(($i+1))
usleep 100000
test $(($i%10)) = 1 && echo -en "\r Scaning: $(show_step) \r" >/dev/console
done
echo >/dev/console
ps | grep "nc $IP.* 3024" | grep -v "grep" | cut -b1-5 | while read pid; do kill $pid 2>/dev/null; done
if [ -e /tmp/vompserver_ip ]; then
IP="$(cat /tmp/vompserver_ip)"
rm -f /tmp/vompserver_ip
echo " Server IP is: $IP"
update_server.sh "$IP"
update_setting "VOMPCLIENT_SEARCH_SERVER" ""
else
echo " No server found "
fi
check_status
;;
stop)
. /etc/init.d/rc.functions
echo "Stopping vompclient"
runvompclient -k
#fbset -depth 8 && fbset -depth 16
#chvt 1
#show_splash
check_status
;;
restart)
runvompclient -r
;;
init)
start=1
stop=1
priority=5
after="vdr alsa"
;;
*)
echo "Usage $0 { start | stop | restart }" >&2
exit 1
cat: can't open 'tpl/navi/services/*.sh': No such file or directory
und der Ordner /var/www/tpl/navi/services ist tatsächlich komplett leer.System
Name: MLD
Version: 4.0.0-rpi
Package Version
alsa 1.0.25-7_3.13.2.37
base 0-32
btrfs 0.19-33
busybox 1.22.1-11
eventlircd 2014.01.17-14_3.13.2.37
font-config 0-1
font-dejavu 0-2
init 0-24
irkeytable 0.8.8-5
kernel 3.13.2.37-37
ldconfig 2014.02.15-5
lirc 2014.04.06-18_3.13.2.37
locales 0-3
mld-remote 0-7
network 0-18_3.13.2.37
ntp-client 0-1
opkg 0.2.1-39
psplash 2009.05.28-16
rpi 0-9
ssh 0-5
udev 0-14
vc 2014.04.08-3
vfat 0-0
vompclient 2014.02.19-8
webserver 0-108
xfs 0-4
Disks
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 3.7G 75.6M 3.2G 2% /media/sd-mmcblk0p2
/dev/mmcblk0p2 3.7G 75.6M 3.2G 2% /mnt/data
Modules
Module Size Used by Tainted: G
lirc_rpi 6183 3
lirc_dev 12443 1 lirc_rpi
uinput 6548 1
snd_bcm2835 16226 0
snd_pcm 82471 1 snd_bcm2835
snd_page_alloc 5144 1 snd_pcm
snd_timer 20157 1 snd_pcm
snd 59126 3 snd_bcm2835,snd_pcm,snd_timer
begin
prog = irexec
button = Key_Power
config = /etc/init.d/vdr restart
end
irexec -d /etc/irexec.conf