Gentoo Archives: gentoo-commits

From: "Matthias Schwarzott (zzam)" <zzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-vdr r605 - in gentoo-vdr-scripts/trunk: . etc/init.d usr/share/vdr/inc
Date: Thu, 29 May 2008 16:21:47
Message-Id: E1K1ksn-0006lc-Gb@stork.gentoo.org
1 Author: zzam
2 Date: 2008-05-29 16:21:40 +0000 (Thu, 29 May 2008)
3 New Revision: 605
4
5 Removed:
6 gentoo-vdr-scripts/trunk/usr/share/vdr/inc/message-functions.sh
7 Modified:
8 gentoo-vdr-scripts/trunk/ChangeLog
9 gentoo-vdr-scripts/trunk/etc/init.d/vdr
10 gentoo-vdr-scripts/trunk/usr/share/vdr/inc/rc-functions.sh
11 Log:
12 Absorbed message-functions into init-script.
13
14 Modified: gentoo-vdr-scripts/trunk/ChangeLog
15 ===================================================================
16 --- gentoo-vdr-scripts/trunk/ChangeLog 2008-05-29 16:06:57 UTC (rev 604)
17 +++ gentoo-vdr-scripts/trunk/ChangeLog 2008-05-29 16:21:40 UTC (rev 605)
18 @@ -1,6 +1,11 @@
19 # ChangeLog for gentoo-vdr-scripts
20 # $Id$
21
22 + 29 May 2008; Matthias Schwarzott <zzam@g.o> etc/init.d/vdr,
23 + -usr/share/vdr/inc/message-functions.sh,
24 + usr/share/vdr/inc/rc-functions.sh:
25 + Absorbed message-functions into init-script.
26 +
27 29 May 2008; Matthias Schwarzott <zzam@g.o>
28 -usr/sbin/vdr-inform-watchdog.sh, usr/sbin/vdr-watchdogd:
29 Rewrite of vdr-watchdog.
30
31 Modified: gentoo-vdr-scripts/trunk/etc/init.d/vdr
32 ===================================================================
33 --- gentoo-vdr-scripts/trunk/etc/init.d/vdr 2008-05-29 16:06:57 UTC (rev 604)
34 +++ gentoo-vdr-scripts/trunk/etc/init.d/vdr 2008-05-29 16:21:40 UTC (rev 605)
35 @@ -10,6 +10,16 @@
36 include rc-functions
37 }
38
39 +#
40 +# Used to log error-messages in startscript to show them on
41 +# OSD later when choosing apropriate point in commands.
42 +#
43 +
44 +vdr_log()
45 +{
46 + echo "$@" >> ${VDR_LOG_FILE}
47 +}
48 +
49 depend() {
50 need net
51 [ "${IR_CTRL}" = "lirc" ] && need lircd
52 @@ -23,8 +33,11 @@
53 load_functions
54 local exitcode
55
56 - init_vdr_start_log
57 + VDR_LOG_FILE=/var/vdr/tmp/vdr-start-log
58 + rm -f "${VDR_LOG_FILE}"
59 + > "${VDR_LOG_FILE}"
60
61 +
62 einfo "Preparing start of vdr:"
63 init_params
64 init_daemonctrl_params
65 @@ -83,6 +96,12 @@
66 exitcode=1
67 fi
68 fi
69 +
70 + # wenn nachrichten vorhanden sind
71 + if [ -s "${VDR_LOG_FILE}" ]; then
72 + /usr/share/vdr/bin/vdr-bg.sh svdrpsend.pl mesg "Errors: Go to Commands/View VDR Start Log"
73 + fi
74 +
75 finish_vdr_start_log
76 return $exitcode
77 }
78
79 Deleted: gentoo-vdr-scripts/trunk/usr/share/vdr/inc/message-functions.sh
80 ===================================================================
81 --- gentoo-vdr-scripts/trunk/usr/share/vdr/inc/message-functions.sh 2008-05-29 16:06:57 UTC (rev 604)
82 +++ gentoo-vdr-scripts/trunk/usr/share/vdr/inc/message-functions.sh 2008-05-29 16:21:40 UTC (rev 605)
83 @@ -1,28 +0,0 @@
84 -# $Id$
85 -
86 -#
87 -# Used to log error-messages in startscript to show them on
88 -# OSD later when choosing apropriate point in commands.
89 -#
90 -
91 -VDR_LOG_FILE=/var/vdr/tmp/vdr-start-log
92 -
93 -init_vdr_start_log()
94 -{
95 - rm -f "${VDR_LOG_FILE}"
96 - > "${VDR_LOG_FILE}"
97 -}
98 -
99 -finish_vdr_start_log()
100 -{
101 - # wenn nachrichten vorhanden sind
102 - if [ -s "${VDR_LOG_FILE}" ]; then
103 - /usr/share/vdr/bin/vdr-bg.sh svdrpsend.pl mesg "Errors: Go to Commands/View VDR Start Log"
104 - fi
105 -}
106 -
107 -vdr_log()
108 -{
109 - echo "$@" >> ${VDR_LOG_FILE}
110 -}
111 -
112
113 Modified: gentoo-vdr-scripts/trunk/usr/share/vdr/inc/rc-functions.sh
114 ===================================================================
115 --- gentoo-vdr-scripts/trunk/usr/share/vdr/inc/rc-functions.sh 2008-05-29 16:06:57 UTC (rev 604)
116 +++ gentoo-vdr-scripts/trunk/usr/share/vdr/inc/rc-functions.sh 2008-05-29 16:21:40 UTC (rev 605)
117 @@ -7,8 +7,6 @@
118 # Starting and stopping of external watchdog
119 #
120
121 -include message-functions
122 -
123 : ${vdr_rc_dir:=/usr/share/vdr/rcscript}
124 : ${vdr_old_rc_dir:=/usr/lib/vdr/rcscript}
125 : ${SCRIPT_DEBUG_LEVEL:=0}
126
127 --
128 gentoo-commits@l.g.o mailing list