From 658cd681aadb62ea35e975436f27ac7f5788b211 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Sat, 20 Oct 2012 08:45:36 +0200 Subject: [PATCH] Current state --- conf.d/g15daemon | 9 ++++++++ conf.d/g15stats | 20 ++++++++++++++++++ cups/printers.conf | 2 +- g15daemon.conf | 27 ++++++++++++++++++++++++ init.d/g15daemon | 41 +++++++++++++++++++++++++++++++++++++ init.d/g15stats | 24 ++++++++++++++++++++++ resolv.conf | 8 +++++--- runlevels/default/g15daemon | 1 + 8 files changed, 128 insertions(+), 4 deletions(-) create mode 100644 conf.d/g15daemon create mode 100644 conf.d/g15stats create mode 100644 g15daemon.conf create mode 100755 init.d/g15daemon create mode 100755 init.d/g15stats create mode 120000 runlevels/default/g15daemon diff --git a/conf.d/g15daemon b/conf.d/g15daemon new file mode 100644 index 00000000..08ea97f4 --- /dev/null +++ b/conf.d/g15daemon @@ -0,0 +1,9 @@ +# /etc/conf.d/g15daemon: Configuration for the g15daemon + +# Key to switch the client-screens. Default is the MR key, +# Set to "yes" to use L1 key instead (black round key below the LCD, above the multimedia keys). +CLIENT_SWITCH_L1="no" + +# Set to "yes" to switch off the lcd backlight when stopping g15daemon. +BACKLIGHT_OFF="no" + diff --git a/conf.d/g15stats b/conf.d/g15stats new file mode 100644 index 00000000..4bf61c23 --- /dev/null +++ b/conf.d/g15stats @@ -0,0 +1,20 @@ +# /etc/conf.d/g15stats: Configuration for the G15 stats + +#Gather statistics from named interface (ie eth0) +#Network Screen displays Total bytes In/Out, history graph, Peak speed. +IFACE="eth0" + +# Please see g15stats --help for meanings +#TEMP_INPUT=1 +#GLOBAL_TEMP_INPUT=1 +#FAN_INPUT=1 + +# please see g15stats --help for all options +# As of 1.9.7, the options where: +# --unicore +# --net-scale-absolute +# --info-rotate +# --variable-cpu +# --refresh +# --disable-freq +EXTRA_OPTS="${IFACE:+--interface} ${IFACE} ${TEMP_INPUT:+--temperature} ${TEMP_INPUT} ${GLOBAL_TEMP_INPUT:+--global-temp} ${GLOBAL_TEMP_INPUT} ${FAN_INPUT:+--fan} ${FAN_INPUT}" diff --git a/cups/printers.conf b/cups/printers.conf index ccbd6cd9..dc62076a 100644 --- a/cups/printers.conf +++ b/cups/printers.conf @@ -1,5 +1,5 @@ # Printer configuration file for CUPS v1.5.2 -# Written by cupsd on 2012-10-01 19:24 +# Written by cupsd on 2012-10-19 18:59 # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING UUID urn:uuid:7ae9b14e-20ad-3628-427d-870cdf4cdea4 diff --git a/g15daemon.conf b/g15daemon.conf new file mode 100644 index 00000000..2d2bfc3c --- /dev/null +++ b/g15daemon.conf @@ -0,0 +1,27 @@ +# G15Daemon Configuration File +# any items entered before a [section] header +# will be in the Global config space +# comments you wish to keep should start with a semicolon';' + +[Global] +Use MR as Cycle Key: Off + +[PLUGIN_LOAD_ORDER] +0: g15plugin_uinput.so +1: g15plugin_clock.so +2: g15plugin_tcpserver.so +TotalPlugins: 3 + +[PLUGINS] +Linux UINPUT Keyboard Output: Load +Clock: Load +LCDServer: Load + +[Keyboard OS Mapping (uinput)] +device: /dev/input/uinput +Lkeys.mapped: 0 + +[Clock] +24hrFormat: On +ShowDate: Off +Digital: On diff --git a/init.d/g15daemon b/init.d/g15daemon new file mode 100755 index 00000000..b8e8cd6a --- /dev/null +++ b/init.d/g15daemon @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/files/g15daemon-1.2.7-r2.initd,v 1.1 2007/12/19 17:38:30 chainsaw Exp $ + +# Init script for g15daemon + +depend() { + after hotplug + after usb + after modules +} + +start() { + ebegin "Starting g15daemon" + + # Does the input device already exist? + if [ -e /proc/modules -a ! -e /dev/input/uinput ]; then + # We can load modules, but uinput device does not exist + einfo "Loading uinput module" + /sbin/modprobe uinput > /dev/null 2> /dev/null + fi + + local SWITCHKEY="" + [ "${CLIENT_SWITCH_L1}" = "yes" ] && SWITCHKEY="--switch" + start-stop-daemon --start --background --pidfile /var/run/g15daemon.pid \ + --exec /usr/sbin/g15daemon -- ${SWITCHKEY} + eend $? "Failed to start g15daemon." +} + +stop() { + ebegin "Stopping g15daemon" + local KILLOPT="-k" + if [ $BACKLIGHT_OFF = "yes" ]; then + KILLOPT="-K" + fi + /usr/sbin/g15daemon ${KILLOPT} &>/dev/null + sleep 1 + start-stop-daemon -R 5 --stop --quiet --pidfile /var/run/g15daemon.pid + eend $? +} diff --git a/init.d/g15stats b/init.d/g15stats new file mode 100755 index 00000000..46352896 --- /dev/null +++ b/init.d/g15stats @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/files/g15stats-1.9.7.initd,v 1.1 2011/08/03 08:11:00 robbat2 Exp $ + +PIDFILE=/var/run/${SVCNAME}.pid + +depend() { + need g15daemon + after xdm +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --background --make-pidfile --pidfile ${PIDFILE} --exec \ + /usr/bin/g15stats -- "${EXTRA_OPTS}" + eend $? +} + +stop() { + ebegin "Stoping ${SVCNAME}" + start-stop-daemon --stop --pidfile ${PIDFILE} --name g15stats + eend $? +} diff --git a/resolv.conf b/resolv.conf index 9a19004e..93a7dfad 100644 --- a/resolv.conf +++ b/resolv.conf @@ -1,4 +1,6 @@ -# Generated by net-scripts for interface eth0 +# Hand made by Frank Brehm domain brehm-online.com -search home.brehm-online.com home.hennig-berlin.org brehm-online.com hennig-berlin.org uhu-banane.de -nameserver 10.12.11.1 +search home.brehm-online.com home.hennig-berlin.org brehm-online.com hennig-berlin.org uhu-banane.de profitbricks.localdomain dc1.de.profitbricks.net +#nameserver 10.12.11.1 +nameserver 192.168.178.30 +nameserver 192.168.178.85 diff --git a/runlevels/default/g15daemon b/runlevels/default/g15daemon new file mode 120000 index 00000000..33617269 --- /dev/null +++ b/runlevels/default/g15daemon @@ -0,0 +1 @@ +/etc/init.d/g15daemon \ No newline at end of file -- 2.39.5