-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugrc
executable file
·53 lines (46 loc) · 1.42 KB
/
plugrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh
##########################################################
# Please choose which start-method you'd like to use
# with 'bootmenu' you get a menu where you can choose
# what programms to be started (e.g. is the mediadistro,
# vdr-client, or the motorola-stack). When prefering to
# start without any boot-menu, you can set the following
# variable to 'mediadistro' to start the internet radio
# normally. Set the variable to 'default' to start the
# motorola stack.
STARTUP=bootmenu
#STARTUP=debian
#STARTUP=default
#########################################################
## NO CHANGES NEEDED AFTER HERE! ##
#########################################################
case ${STARTUP} in
bootmenu)
# copy files needed for bootmenu to root-dir
cp -R /mnt/bootmenu/usr /;
cp -R /mnt/bootmenu/etc /;
# load required modules
/mnt/bootmenu/modules.sh;
# start lirc
/usr/sbin/lircd -d /dev/lirc/0;
#start bootmenu
BM_OUT=`/usr/bin/bootmenu /etc/bootmenu.conf 2>/dev/null`;
case ${BM_OUT} in
1)
# Taste 1 fuer Debian
killall -9 lircd;
/mnt/debboot/preinit;
;;
2)
# Taste 2 fuer Motorola Stack
killall -9 lircd;
/sbin/rmmod lirc_xilleon;
/sbin/rmmod lirc_dev;
/sbin/insmod 08kb;
;;
esac
;;
debian)
/mnt/debboot/preinit;
;;
esac