1 | Fatal Error at /var/www/localhost/htdocs/mythweb/objects/Database/Query/mysql.php, line 83:
SQL Error: Incorrect information in file: './mythconverg/weatherscreens.frm' [#1033] |
---|
2 | If you choose to submit a bug report, please make sure to include a
brief description of what you were doing, along with the following
backtrace as an attachment (please don't paste the whole thing into
the ticket). |
---|
3 | |
---|
4 | Backtrace: |
---|
5 | datetime: 2009-10-11 20:59:05 (EST) |
---|
6 | errornum: 256 |
---|
7 | error type: User Error |
---|
8 | error string: SQL Error: Incorrect information in file: './mythconverg/weatherscreens.frm' [#1033] |
---|
9 | filename: /var/www/localhost/htdocs/mythweb/objects/Database/Query/mysql.php |
---|
10 | error line: 83 |
---|
11 | |
---|
12 | ========================================================================== |
---|
13 | |
---|
14 | Backtrace: |
---|
15 | |
---|
16 | file: /var/www/localhost/htdocs/mythweb/objects/Database/Query/mysql.php |
---|
17 | line: 83 |
---|
18 | class: |
---|
19 | function: trigger_error |
---|
20 | type: |
---|
21 | args: Array |
---|
22 | ( |
---|
23 | [0] => SQL Error: Incorrect information in file: './mythconverg/weatherscreens.frm' [#1033] |
---|
24 | [1] => 256 |
---|
25 | ) |
---|
26 | |
---|
27 | file: /var/www/localhost/htdocs/mythweb/objects/Database.php |
---|
28 | line: 261 |
---|
29 | class: Database_Query_mysql |
---|
30 | function: execute |
---|
31 | type: -> |
---|
32 | args: Array |
---|
33 | ( |
---|
34 | [0] => Array |
---|
35 | ( |
---|
36 | [0] => Array ( ) |
---|
37 | ) |
---|
38 | |
---|
39 | ) |
---|
40 | |
---|
41 | file: /var/www/localhost/htdocs/mythweb/objects/Database.php |
---|
42 | line: 324 |
---|
43 | class: Database |
---|
44 | function: query |
---|
45 | type: -> |
---|
46 | args: Array |
---|
47 | ( |
---|
48 | [0] => SELECT COUNT(screen_id) |
---|
49 | FROM weatherscreens |
---|
50 | [1] => Array ( ) |
---|
51 | ) |
---|
52 | |
---|
53 | file: /var/www/localhost/htdocs/mythweb/modules/weather/init.php |
---|
54 | line: 25 |
---|
55 | class: Database |
---|
56 | function: query_col |
---|
57 | type: -> |
---|
58 | args: Array |
---|
59 | ( |
---|
60 | [0] => SELECT COUNT(screen_id) |
---|
61 | FROM weatherscreens |
---|
62 | ) |
---|
63 | |
---|
64 | file: /var/www/localhost/htdocs/mythweb/includes/modules.php |
---|
65 | line: 30 |
---|
66 | class: |
---|
67 | function: require_once |
---|
68 | type: |
---|
69 | args: Array |
---|
70 | ( |
---|
71 | [0] => /var/www/localhost/htdocs/mythweb/modules/weather/init.php |
---|
72 | ) |
---|
73 | |
---|
74 | file: /var/www/localhost/htdocs/mythweb/includes/init.php |
---|
75 | line: 68 |
---|
76 | class: |
---|
77 | function: require_once |
---|
78 | type: |
---|
79 | args: Array |
---|
80 | ( |
---|
81 | [0] => /var/www/localhost/htdocs/mythweb/includes/modules.php |
---|
82 | ) |
---|
83 | |
---|
84 | file: /var/www/localhost/htdocs/mythweb/mythweb.php |
---|
85 | line: 20 |
---|
86 | class: |
---|
87 | function: require_once |
---|
88 | type: |
---|
89 | args: Array |
---|
90 | ( |
---|
91 | [0] => /var/www/localhost/htdocs/mythweb/includes/init.php |
---|
92 | ) |
---|
93 | |
---|
94 | |
---|
95 | ========================================================================== |
---|
96 | |
---|
97 | $_SESSION: Array |
---|
98 | ( |
---|
99 | [language] => English_GB |
---|
100 | [tmpl] => default |
---|
101 | [skin] => default |
---|
102 | [prefer_channum] => 1 |
---|
103 | [date_statusbar] => %a %b %e, %Y, %I:%M %p |
---|
104 | [date_scheduled] => %a %b %e, %Y (%I:%M %p) |
---|
105 | [date_scheduled_popup] => %a %b %e, %Y |
---|
106 | [date_recorded] => %a %b %e, %Y (%I:%M %p) |
---|
107 | [date_search] => %a %b %e, %Y, %I:%M %p |
---|
108 | [date_listing_key] => %a %b %e, %Y, %I:%M %p |
---|
109 | [date_listing_jump] => %a %b %e, %Y |
---|
110 | [date_channel_jump] => %a %b %e, %Y |
---|
111 | [date_job_status] => %a %b %e, %Y, %I:%M %p |
---|
112 | [time_format] => %I:%M %p |
---|
113 | [recorded_pixmaps] => 1 |
---|
114 | [guide_favonly] => |
---|
115 | [timeslot_size] => 300 |
---|
116 | [num_time_slots] => 36 |
---|
117 | [timeslot_blocks] => 3 |
---|
118 | [timeslotbar_skip] => 20 |
---|
119 | [max_stars] => 4 |
---|
120 | [star_character] => ♦ |
---|
121 | [show_popup_info] => 1 |
---|
122 | [show_channel_icons] => 1 |
---|
123 | [sortby_channum] => 1 |
---|
124 | [show_video_covers] => 1 |
---|
125 | [tv] => Array |
---|
126 | ( |
---|
127 | [last] => Array |
---|
128 | ( |
---|
129 | [0] => searches |
---|
130 | ) |
---|
131 | |
---|
132 | [show_advanced_schedule] => 1 |
---|
133 | ) |
---|
134 | |
---|
135 | [schedules_sortby] => Array |
---|
136 | ( |
---|
137 | [0] => Array |
---|
138 | ( |
---|
139 | [field] => airdate |
---|
140 | [reverse] => |
---|
141 | ) |
---|
142 | |
---|
143 | [1] => Array |
---|
144 | ( |
---|
145 | [field] => title |
---|
146 | [reverse] => |
---|
147 | ) |
---|
148 | |
---|
149 | ) |
---|
150 | |
---|
151 | [list_time] => 1255072500 |
---|
152 | [settings] => Array |
---|
153 | ( |
---|
154 | [last] => Array |
---|
155 | ( |
---|
156 | [0] => database |
---|
157 | [1] => settings |
---|
158 | ) |
---|
159 | |
---|
160 | [host] => srv3 |
---|
161 | ) |
---|
162 | |
---|
163 | [recording_details] => Array |
---|
164 | ( |
---|
165 | [show_Conflict] => 1 |
---|
166 | [show_PreviousRecording] => 1 |
---|
167 | [show_EarlierShowing] => 1 |
---|
168 | [show_CurrentRecording] => 1 |
---|
169 | [show_WillRecord] => 1 |
---|
170 | ) |
---|
171 | |
---|
172 | [recorded_title] => |
---|
173 | [recorded_recgroup] => Default |
---|
174 | [recorded_sortby] => Array |
---|
175 | ( |
---|
176 | [0] => Array |
---|
177 | ( |
---|
178 | [field] => airdate |
---|
179 | [reverse] => 1 |
---|
180 | ) |
---|
181 | |
---|
182 | [1] => Array |
---|
183 | ( |
---|
184 | [field] => title |
---|
185 | [reverse] => |
---|
186 | ) |
---|
187 | |
---|
188 | ) |
---|
189 | |
---|
190 | [search] => Array |
---|
191 | ( |
---|
192 | [s] => canned:Non-Music Specials |
---|
193 | [type] => q |
---|
194 | [ctype] => Array |
---|
195 | ( |
---|
196 | [0] => movie |
---|
197 | [1] => sports |
---|
198 | [2] => tvshow |
---|
199 | ) |
---|
200 | |
---|
201 | [stars_gt] => 0 |
---|
202 | [stars_lt] => 1 |
---|
203 | [starttime] => now |
---|
204 | [endtime] => + 2 weeks |
---|
205 | [as] => Array |
---|
206 | ( |
---|
207 | [0] => david |
---|
208 | ) |
---|
209 | |
---|
210 | [af] => Array |
---|
211 | ( |
---|
212 | [0] => Array |
---|
213 | ( |
---|
214 | [0] => description |
---|
215 | ) |
---|
216 | |
---|
217 | ) |
---|
218 | |
---|
219 | [aj] => Array |
---|
220 | ( |
---|
221 | [0] => AND |
---|
222 | ) |
---|
223 | |
---|
224 | [hd] => |
---|
225 | [commfree] => 1 |
---|
226 | [airdate_start] => |
---|
227 | [airdate_end] => |
---|
228 | ) |
---|
229 | |
---|
230 | [search_sortby] => Array |
---|
231 | ( |
---|
232 | [0] => Array |
---|
233 | ( |
---|
234 | [field] => airdate |
---|
235 | [reverse] => |
---|
236 | ) |
---|
237 | |
---|
238 | [1] => Array |
---|
239 | ( |
---|
240 | [field] => title |
---|
241 | [reverse] => |
---|
242 | ) |
---|
243 | |
---|
244 | ) |
---|
245 | |
---|
246 | [scheduled_recordings] => Array |
---|
247 | ( |
---|
248 | [disp_scheduled] => 1 |
---|
249 | [disp_duplicates] => |
---|
250 | [disp_deactivated] => |
---|
251 | [disp_conflicts] => 1 |
---|
252 | ) |
---|
253 | |
---|
254 | [scheduled_sortby] => Array |
---|
255 | ( |
---|
256 | [0] => Array |
---|
257 | ( |
---|
258 | [field] => airdate |
---|
259 | [reverse] => |
---|
260 | ) |
---|
261 | |
---|
262 | [1] => Array |
---|
263 | ( |
---|
264 | [field] => title |
---|
265 | [reverse] => |
---|
266 | ) |
---|
267 | |
---|
268 | ) |
---|
269 | |
---|
270 | [weather] => Array |
---|
271 | ( |
---|
272 | [active] => Array |
---|
273 | ( |
---|
274 | [0] => 1 |
---|
275 | [1] => 8 |
---|
276 | ) |
---|
277 | |
---|
278 | [inactive] => Array |
---|
279 | ( |
---|
280 | [0] => 18 Hour Forecast |
---|
281 | [1] => Animated Map |
---|
282 | [2] => Current Conditions |
---|
283 | [3] => Severe Weather Alerts |
---|
284 | [4] => Six Day Forecast |
---|
285 | [5] => Static Map |
---|
286 | [6] => Three Day Forecast |
---|
287 | ) |
---|
288 | |
---|
289 | ) |
---|
290 | |
---|
291 | [] => Array ( ) |
---|
292 | ) |
---|
293 | |
---|
294 | ========================================================================== |
---|
295 | |
---|
296 | $_SERVER: Array |
---|
297 | ( |
---|
298 | [spl_fifo] => /lib64/splash/cache/.splash |
---|
299 | [TERM] => xterm-color |
---|
300 | [SHELL] => /bin/bash |
---|
301 | [DEFAULTLEVEL] => default |
---|
302 | [SPLASH_KDMODE] => TEXT |
---|
303 | [SPLASH_TEXTBOX] => no |
---|
304 | [SPLASH_XSERVICE] => xdm |
---|
305 | [spl_decor] => //sbin/fbcondecor_ctl.static |
---|
306 | [SPLASH_BOOT_MESSAGE] => Booting the system ($progress%)... Press F2 for verbose mode. |
---|
307 | [SPLASH_TTY] => 16 |
---|
308 | [USER] => root |
---|
309 | [SPLASH_EFFECTS] => fadein,fadeout |
---|
310 | [SPLASH_SANITY] => |
---|
311 | [SPLASH_THEME] => default |
---|
312 | [SPLASH_PROFILE] => off |
---|
313 | [spl_cachesize] => 4096 |
---|
314 | [PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin |
---|
315 | [spl_daemon] => //sbin/fbsplashd.static |
---|
316 | [spl_tmpdir] => /lib64/splash/tmp |
---|
317 | [spl_cachedir] => /lib64/splash/cache |
---|
318 | [PWD] => /var/www/localhost/htdocs/mythweb-old/includes |
---|
319 | [spl_pidfile] => /lib64/splash/cache/daemon.pid |
---|
320 | [SPLASH_MODE_REQ] => off |
---|
321 | [BOOTLEVEL] => boot |
---|
322 | [SPLASH_SHUTDOWN_MESSAGE] => Shutting down the system ($progress%)... Press F2 for verbose mode. |
---|
323 | [SVCNAME] => lighttpd |
---|
324 | [CONSOLETYPE] => pty |
---|
325 | [SPLASH_REBOOT_MESSAGE] => Rebooting the system ($progress%)... Press F2 for verbose mode. |
---|
326 | [SHLVL] => 1 |
---|
327 | [HOME] => /root |
---|
328 | [spl_bindir] => /lib64/splash/bin |
---|
329 | [spl_util] => //bin/splash_util.static |
---|
330 | [SOFTLEVEL] => default |
---|
331 | [spl_cachetype] => tmpfs |
---|
332 | [SPLASH_AUTOVERBOSE] => 0 |
---|
333 | [splash_get_mode] => () { local ctty="${spl_bindir}/fgconsole"; |
---|
334 | local mode="$(${spl_util})"; |
---|
335 | if [ "${mode}" = "silent" ]; then |
---|
336 | echo "silent"; |
---|
337 | else |
---|
338 | if [ -z "$(${spl_decor} -c getstate --tty=${ctty} 2>/dev/null | grep off)" ]; then |
---|
339 | echo "verbose"; |
---|
340 | else |
---|
341 | echo "off"; |
---|
342 | fi; |
---|
343 | fi |
---|
344 | } |
---|
345 | [splash_svclist_get] => () { if [ "$1" = "start" -a -r "${spl_cachedir}/svcs_start" ]; then |
---|
346 | cat "${spl_cachedir}/svcs_start"; |
---|
347 | else |
---|
348 | if [ "$1" = "stop" -a -r "${spl_cachedir}/svcs_stop" ]; then |
---|
349 | cat "${spl_cachedir}/svcs_stop"; |
---|
350 | fi; |
---|
351 | fi |
---|
352 | } |
---|
353 | [splash_get_boot_message] => () { if [ "${RUNLEVEL}" = "6" ]; then |
---|
354 | echo "${SPLASH_REBOOT_MESSAGE}"; |
---|
355 | else |
---|
356 | if [ "${RUNLEVEL}" = "0" ]; then |
---|
357 | echo "${SPLASH_SHUTDOWN_MESSAGE}"; |
---|
358 | else |
---|
359 | echo "${SPLASH_BOOT_MESSAGE}"; |
---|
360 | fi; |
---|
361 | fi |
---|
362 | } |
---|
363 | [splash_comm_send] => () { if [ -z "`pidof $(basename ${spl_daemon})`" ]; then |
---|
364 | return 1; |
---|
365 | else |
---|
366 | splash_profile "comm $*"; |
---|
367 | echo "$*" > "${spl_fifo}" & |
---|
368 | fi |
---|
369 | } |
---|
370 | [splash_setup] => () { if [ "${SPLASH_THEME}" != "" -a "${SPLASH_TTY}" != "" -a "$1" != "force" ]; then |
---|
371 | return 0; |
---|
372 | fi; |
---|
373 | export SPLASH_EFFECTS=""; |
---|
374 | export SPLASH_SANITY=""; |
---|
375 | export SPLASH_TEXTBOX="no"; |
---|
376 | export SPLASH_MODE_REQ="off"; |
---|
377 | export SPLASH_PROFILE="off"; |
---|
378 | export SPLASH_THEME="default"; |
---|
379 | export SPLASH_TTY="16"; |
---|
380 | export SPLASH_KDMODE="TEXT"; |
---|
381 | export SPLASH_AUTOVERBOSE="0"; |
---|
382 | export SPLASH_BOOT_MESSAGE="Booting the system ($progress%)... Press F2 for verbose mode."; |
---|
383 | export SPLASH_SHUTDOWN_MESSAGE="Shutting down the system ($progress%)... Press F2 for verbose mode."; |
---|
384 | export SPLASH_REBOOT_MESSAGE="Rebooting the system ($progress%)... Press F2 for verbose mode."; |
---|
385 | export SPLASH_XSERVICE="xdm"; |
---|
386 | [ -f /etc/splash/splash ] && . /etc/splash/splash; |
---|
387 | [ -f /etc/conf.d/splash ] && . /etc/conf.d/splash; |
---|
388 | [ -f /etc/conf.d/fbcondecor ] && . /etc/conf.d/fbcondecor; |
---|
389 | if [ -f /proc/cmdline ]; then |
---|
390 | options=$(grep -o 'splash=[^ ]*' /proc/cmdline); |
---|
391 | for opt in ${options}; |
---|
392 | do |
---|
393 | options=${opt#*=}; |
---|
394 | for i in $(echo "${options}" | sed -e 's/,/ /g'); |
---|
395 | do |
---|
396 | case ${i%:*} in |
---|
397 | theme) |
---|
398 | SPLASH_THEME=${i#*:} |
---|
399 | ;; |
---|
400 | tty) |
---|
401 | SPLASH_TTY=${i#*:} |
---|
402 | ;; |
---|
403 | verbose) |
---|
404 | SPLASH_MODE_REQ="verbose" |
---|
405 | ;; |
---|
406 | silent) |
---|
407 | SPLASH_MODE_REQ="silent" |
---|
408 | ;; |
---|
409 | kdgraphics) |
---|
410 | SPLASH_KDMODE="GRAPHICS" |
---|
411 | ;; |
---|
412 | profile) |
---|
413 | SPLASH_PROFILE="on" |
---|
414 | ;; |
---|
415 | insane) |
---|
416 | SPLASH_SANITY="insane" |
---|
417 | ;; |
---|
418 | esac; |
---|
419 | done; |
---|
420 | done; |
---|
421 | fi |
---|
422 | } |
---|
423 | [splash_silent] => () { splash_comm_send "set mode silent" |
---|
424 | } |
---|
425 | [splash_cache_cleanup] => () { [ -z "$(grep ${spl_cachedir} /proc/mounts)" ] && return; |
---|
426 | if [ ! -d "${spl_tmpdir}" ]; then |
---|
427 | mkdir -p "${spl_tmpdir}" 2> /dev/null; |
---|
428 | [ "$?" != "0" ] && return; |
---|
429 | fi; |
---|
430 | if [ -n "$(pgrep fbsplashd)" ]; then |
---|
431 | sleep 1; |
---|
432 | killall -9 "${spl_daemon##*/}" 2> /dev/null; |
---|
433 | fi; |
---|
434 | local mntopt=""; |
---|
435 | [ -w /etc/mtab ] || mntopt="-n"; |
---|
436 | mount ${mntopt} --move "${spl_cachedir}" "${spl_tmpdir}" 2> /dev/null; |
---|
437 | [ -w "${spl_cachedir}" ] || return; |
---|
438 | if [ "${SPLASH_PROFILE}" != "off" ]; then |
---|
439 | cp -a "${spl_tmpdir}/profile" "${spl_cachedir}" 2> /dev/null; |
---|
440 | fi; |
---|
441 | while [ -n "$1" ]; do |
---|
442 | cp -a "${spl_tmpdir}/$1" "${spl_cachedir}" 2> /dev/null; |
---|
443 | shift; |
---|
444 | done; |
---|
445 | umount -l "${spl_tmpdir}" 2> /dev/null |
---|
446 | } |
---|
447 | [splash_start] => () { if [ "${SPLASH_MODE_REQ}" = "verbose" ]; then |
---|
448 | ${spl_decor} -c on 2> /dev/null; |
---|
449 | return 0; |
---|
450 | else |
---|
451 | if [ "${SPLASH_MODE_REQ}" != "silent" ]; then |
---|
452 | return 0; |
---|
453 | fi; |
---|
454 | fi; |
---|
455 | if [ "${SPLASH_MODE_REQ}" = "silent" -a "${SPLASH_SANITY}" != "insane" ]; then |
---|
456 | if [ -z "$(grep -E '(^| )CONSOLE=/dev/tty1( |$)' /proc/cmdline)" -a -z "$(grep -E '(^| )console=tty1( |$)' /proc/cmdline)" ]; then |
---|
457 | clear; |
---|
458 | splash_warn "You don't appear to have a correct console= setting on your kernel"; |
---|
459 | splash_warn "command line. Silent splash will not be enabled. Please add"; |
---|
460 | splash_warn "console=tty1 or CONSOLE=/dev/tty1 to your kernel command line"; |
---|
461 | splash_warn "to avoid this message."; |
---|
462 | if [ -n "$(grep 'CONSOLE=/dev/tty1' /proc/cmdline)" -o -n "$(grep 'console=tty1' /proc/cmdline)" ]; then |
---|
463 | splash_warn "Note that CONSOLE=/dev/tty1 and console=tty1 are general parameters and"; |
---|
464 | splash_warn "not splash= settings."; |
---|
465 | fi; |
---|
466 | return 1; |
---|
467 | fi; |
---|
468 | if [ -n "$(grep -E '(^| )CONSOLE=/dev/tty1( |$)' /proc/cmdline)" ]; then |
---|
469 | mount -n --bind / ${spl_tmpdir}; |
---|
470 | if [ ! -c "${spl_tmpdir}/dev/tty1" ]; then |
---|
471 | umount -n ${spl_tmpdir}; |
---|
472 | splash_warn "The filesystem mounted on / doesn't contain the /dev/tty1 device"; |
---|
473 | splash_warn "which is required for the silent splash to function properly."; |
---|
474 | splash_warn "Silent splash will not be enabled. Please create the appropriate"; |
---|
475 | splash_warn "device node to avoid this message."; |
---|
476 | return 1; |
---|
477 | fi; |
---|
478 | umount -n ${spl_tmpdir}; |
---|
479 | fi; |
---|
480 | fi; |
---|
481 | rm -f "${spl_pidfile}"; |
---|
482 | rm -f "${spl_fifo}" 2> /dev/null; |
---|
483 | mkfifo "${spl_fifo}"; |
---|
484 | local options=""; |
---|
485 | [ "${SPLASH_KDMODE}" = "GRAPHICS" ] && options="--kdgraphics"; |
---|
486 | [ -n "${SPLASH_EFFECTS}" ] && options="${options} --effects=${SPLASH_EFFECTS}"; |
---|
487 | [ "${SPLASH_TEXTBOX}" = "yes" ] && options="${options} --textbox"; |
---|
488 | local ttype="bootup"; |
---|
489 | if [ "${RUNLEVEL}" = "6" ]; then |
---|
490 | ttype="reboot"; |
---|
491 | else |
---|
492 | if [ "${RUNLEVEL}" = "0" ]; then |
---|
493 | ttype="shutdown"; |
---|
494 | fi; |
---|
495 | fi; |
---|
496 | BOOT_MSG="$(splash_get_boot_message)" ${spl_daemon} --theme="${SPLASH_THEME}" --pidfile="${spl_pidfile}" --type=${ttype} ${options}; |
---|
497 | splash_comm_send "set tty silent ${SPLASH_TTY}"; |
---|
498 | if [ "${SPLASH_MODE_REQ}" = "silent" ]; then |
---|
499 | splash_comm_send "set mode silent"; |
---|
500 | splash_comm_send "repaint"; |
---|
501 | ${spl_decor} -c on 2> /dev/null; |
---|
502 | fi; |
---|
503 | splash_comm_send "set autoverbose ${SPLASH_AUTOVERBOSE}"; |
---|
504 | splash_set_event_dev; |
---|
505 | return 0 |
---|
506 | } |
---|
507 | [splash_set_event_dev] => () { local t="$(grep -Hsi keyboard /sys/class/input/input*/name | sed -e 's#.*input([0-9]*)/name.*#event1#')"; |
---|
508 | if [ -z "${t}" ]; then |
---|
509 | t="$(grep -Hsi keyboard /sys/class/input/event*/device/driver/description | grep -o 'event[0-9]+')"; |
---|
510 | if [ -z "${t}" ]; then |
---|
511 | for i in /sys/class/input/input*; |
---|
512 | do |
---|
513 | if [ "$((0x$(cat $i/capabilities/ev) & 0x100002))" = "1048578" ]; then |
---|
514 | t="$(echo $i | sed -e 's#.*input([0-9]*)#event1#')"; |
---|
515 | fi; |
---|
516 | done; |
---|
517 | if [ -z "${t}" ]; then |
---|
518 | t="$(/bin/grep -s -m 1 '^H: Handlers=kbd' /proc/bus/input/devices | grep -o 'event[0-9]*')"; |
---|
519 | fi; |
---|
520 | fi; |
---|
521 | fi; |
---|
522 | [ -n "${t}" ] && splash_comm_send "set event dev /dev/input/${t}" |
---|
523 | } |
---|
524 | [splash_cache_prep] => () { mount -ns -t "${spl_cachetype}" cachedir "${spl_tmpdir}" -o rw,mode=0644,size="${spl_cachesize}"k; |
---|
525 | retval=$?; |
---|
526 | if [[ ${retval} -ne 0 ]]; then |
---|
527 | eerror "Unable to create splash cache - switching to verbose."; |
---|
528 | splash_verbose; |
---|
529 | return "${retval}"; |
---|
530 | fi; |
---|
531 | cp -a ${svcdir}/{depcache,deptree} "${spl_tmpdir}" 2> /dev/null; |
---|
532 | cp -a ${spl_cachedir}/{svcs_start,svcs_stop,levels} "${spl_tmpdir}" 2> /dev/null; |
---|
533 | mount -n --move "${spl_tmpdir}" "${spl_cachedir}"; |
---|
534 | h=$(ls -ld --full-time ${spl_cachedir}/deptree 2>/dev/null | cut -f6,7,8 -d' '); |
---|
535 | /sbin/depscan.sh --svcdir "${spl_cachedir}"; |
---|
536 | if [[ "$1" == "start" ]]; then |
---|
537 | if [[ ! -e ${spl_cachedir}/levels || ! -e ${spl_cachedir}/svcs_start ]]; then |
---|
538 | echo $(splash_svclist_update "start") > ${spl_cachedir}/svcs_start; |
---|
539 | else |
---|
540 | local lastlev timestamp; |
---|
541 | { |
---|
542 | read lastlev; |
---|
543 | read timestamp |
---|
544 | } < ${spl_cachedir}/levels; |
---|
545 | if [[ "${lastlev}" != "${BOOTLEVEL}/${DEFAULTLEVEL}" || "${timestamp}" != "$(ls -ld --full-time /etc/runlevels/${BOOTLEVEL} | cut -f6,7,8 -d' ')/$(ls -ld --full-time /etc/runlevels/${DEFAULTLEVEL} | cut -f6,7,8 -d' ')" || "$(ls -ld --full-time ${spl_cachedir}/deptree 2>/dev/null | cut -f6,7,8 -d' ')" != "${h}" ]]; then |
---|
546 | echo $(splash_svclist_update "start") > ${spl_cachedir}/svcs_start; |
---|
547 | fi; |
---|
548 | fi; |
---|
549 | echo -n > ${spl_cachedir}/profile; |
---|
550 | fi; |
---|
551 | return 0 |
---|
552 | } |
---|
553 | [splash_verbose] => () { chvt 1 |
---|
554 | } |
---|
555 | [splash] => () { local event="$1"; |
---|
556 | shift; |
---|
557 | if [ "${event}" = "rc_init" ]; then |
---|
558 | splash_setup "force"; |
---|
559 | else |
---|
560 | splash_setup; |
---|
561 | fi; |
---|
562 | [ "${SPLASH_MODE_REQ}" = "off" ] && return; |
---|
563 | if [ "${event}" = "rc_init" ]; then |
---|
564 | if [ "${RUNLEVEL}" = "S" -a "$1" = "sysinit" ]; then |
---|
565 | splash_cache_prep 'start' || return; |
---|
566 | else |
---|
567 | if [ "${RUNLEVEL}" = "6" -o "${RUNLEVEL}" = "0" ]; then |
---|
568 | if ! touch "${spl_cachedir}/message" 2> /dev/null; then |
---|
569 | splash_cache_prep 'stop' || return; |
---|
570 | fi; |
---|
571 | fi; |
---|
572 | fi; |
---|
573 | fi; |
---|
574 | local args=""; |
---|
575 | if [ "${event}" = "rc_init" -o "${event}" = "rc_exit" ]; then |
---|
576 | args="$* ${RUNLEVEL}"; |
---|
577 | else |
---|
578 | if [ "${event}" = "svc_started" -o "${event}" = "svc_stopped" ]; then |
---|
579 | if [ -z "$2" ]; then |
---|
580 | args="$* 0"; |
---|
581 | else |
---|
582 | args="$*"; |
---|
583 | if [ "$2" != "0" ]; then |
---|
584 | if [ "${event}" = "svc_started" ]; then |
---|
585 | event="svc_start_failed"; |
---|
586 | else |
---|
587 | event="svc_stop_failed"; |
---|
588 | fi; |
---|
589 | fi; |
---|
590 | fi; |
---|
591 | else |
---|
592 | args="$*"; |
---|
593 | fi; |
---|
594 | fi; |
---|
595 | splash_profile "pre ${event} ${args}"; |
---|
596 | if [ -x "/etc/splash/${SPLASH_THEME}/scripts/${event}-pre" ]; then |
---|
597 | /etc/splash/"${SPLASH_THEME}"/scripts/${event}-pre ${args}; |
---|
598 | fi; |
---|
599 | case "$event" in |
---|
600 | svc_start) |
---|
601 | splash_svc_start "$1" |
---|
602 | ;; |
---|
603 | svc_stop) |
---|
604 | splash_svc_stop "$1" |
---|
605 | ;; |
---|
606 | svc_started) |
---|
607 | splash_svc "$1" "start" |
---|
608 | ;; |
---|
609 | svc_stopped) |
---|
610 | splash_svc "$1" "stop" |
---|
611 | ;; |
---|
612 | svc_start_failed) |
---|
613 | splash_svc_fail "$1" "start" |
---|
614 | ;; |
---|
615 | svc_stop_failed) |
---|
616 | splash_svc_fail "$1" "stop" |
---|
617 | ;; |
---|
618 | svc_input_begin) |
---|
619 | splash_input_begin "$1" |
---|
620 | ;; |
---|
621 | svc_input_end) |
---|
622 | splash_input_end "$1" |
---|
623 | ;; |
---|
624 | rc_init) |
---|
625 | splash_init "$1" "${RUNLEVEL}" |
---|
626 | ;; |
---|
627 | rc_exit) |
---|
628 | splash_exit "${RUNLEVEL}" |
---|
629 | ;; |
---|
630 | critical) |
---|
631 | splash_verbose |
---|
632 | ;; |
---|
633 | esac; |
---|
634 | splash_profile "post ${event} ${args}"; |
---|
635 | if [ -x "/etc/splash/${SPLASH_THEME}/scripts/${event}-post" ]; then |
---|
636 | /etc/splash/"${SPLASH_THEME}"/scripts/${event}-post ${args}; |
---|
637 | fi; |
---|
638 | return 0 |
---|
639 | } |
---|
640 | [splash_profile] => () { if [ "${SPLASH_PROFILE}" = "on" ]; then |
---|
641 | echo "$(cat /proc/uptime | cut -f1 -d' '): $*" >> "${spl_cachedir}/profile"; |
---|
642 | fi |
---|
643 | } |
---|
644 | [chvt] => () { local ntty=$1; |
---|
645 | if [ -x /usr/bin/chvt ]; then |
---|
646 | /usr/bin/chvt ${ntty}; |
---|
647 | else |
---|
648 | printf "e[12;${ntty}]"; |
---|
649 | fi |
---|
650 | } |
---|
651 | [_] => /sbin/start-stop-daemon |
---|
652 | [PHP_FCGI_CHILDREN] => 1 |
---|
653 | [FCGI_ROLE] => RESPONDER |
---|
654 | [SERVER_SOFTWARE] => lighttpd/1.4.20 |
---|
655 | [SERVER_NAME] => gw |
---|
656 | [GATEWAY_INTERFACE] => CGI/1.1 |
---|
657 | [SERVER_PORT] => 80 |
---|
658 | [SERVER_ADDR] => 192.168.7.1 |
---|
659 | [REMOTE_PORT] => 54750 |
---|
660 | [REMOTE_ADDR] => 192.168.7.90 |
---|
661 | [REMOTE_USER] => allan |
---|
662 | [AUTH_TYPE] => Digest |
---|
663 | [SCRIPT_NAME] => /mythweb/mythweb.php |
---|
664 | [PATH_INFO] => |
---|
665 | [SCRIPT_FILENAME] => /var/www/localhost/htdocs/mythweb/mythweb.php |
---|
666 | [DOCUMENT_ROOT] => /var/www/localhost/htdocs |
---|
667 | [REQUEST_URI] => /mythweb/ |
---|
668 | [QUERY_STRING] => |
---|
669 | [REQUEST_METHOD] => GET |
---|
670 | [REDIRECT_STATUS] => 200 |
---|
671 | [SERVER_PROTOCOL] => HTTP/1.1 |
---|
672 | [HTTP_HOST] => gw |
---|
673 | [HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 |
---|
674 | [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
---|
675 | [HTTP_ACCEPT_LANGUAGE] => en-gb,en;q=0.5 |
---|
676 | [HTTP_ACCEPT_ENCODING] => gzip,deflate |
---|
677 | [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
---|
678 | [HTTP_KEEP_ALIVE] => 300 |
---|
679 | [HTTP_CONNECTION] => keep-alive |
---|
680 | [HTTP_COOKIE] => mythweb_id=8fe5539dbc5d5328472596e7ec444131 |
---|
681 | [HTTP_AUTHORIZATION] => Digest username="allan", realm="mythweb", nonce="ef589aa7343c0be0edc54f86139bbf69", uri="/mythweb/", response="6f1799e48f58f3bb92ff0be5f485a7b1", qop=auth, nc=00000022, cnonce="c2a737e14821dc90" |
---|
682 | [HTTP_CACHE_CONTROL] => max-age=0 |
---|
683 | [DB_SERVER] => gw |
---|
684 | [DB_NAME] => mythconverg |
---|
685 | [DB_LOGIN] => mythtv |
---|
686 | [DB_PASSWORD] => mythtv |
---|
687 | [PHP_SELF] => /mythweb/mythweb.php |
---|
688 | [PHP_AUTH_DIGEST] => username="allan", realm="mythweb", nonce="ef589aa7343c0be0edc54f86139bbf69", uri="/mythweb/", response="6f1799e48f58f3bb92ff0be5f485a7b1", qop=auth, nc=00000022, cnonce="c2a737e14821dc90" |
---|
689 | [REQUEST_TIME] => 1255255145 |
---|
690 | [argv] => Array ( ) |
---|
691 | [argc] => 0 |
---|
692 | [STATUS] => 200 |
---|
693 | ) |
---|
694 | |
---|
695 | |
---|