]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
Current state
authorFrank Brehm <frank@brehm-online.com>
Sat, 20 Oct 2012 06:45:36 +0000 (08:45 +0200)
committerFrank Brehm <frank@brehm-online.com>
Sat, 20 Oct 2012 06:45:36 +0000 (08:45 +0200)
conf.d/g15daemon [new file with mode: 0644]
conf.d/g15stats [new file with mode: 0644]
cups/printers.conf
g15daemon.conf [new file with mode: 0644]
init.d/g15daemon [new file with mode: 0755]
init.d/g15stats [new file with mode: 0755]
resolv.conf
runlevels/default/g15daemon [new symlink]

diff --git a/conf.d/g15daemon b/conf.d/g15daemon
new file mode 100644 (file)
index 0000000..08ea97f
--- /dev/null
@@ -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 (file)
index 0000000..4bf61c2
--- /dev/null
@@ -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}"
index ccbd6cd9a2bd411aa8bed4cb5a4a0a7889809a3c..dc62076ac0963d73b68b477dc07dce2b1e7a307b 100644 (file)
@@ -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
 <Printer Virtual_Printer>
 UUID urn:uuid:7ae9b14e-20ad-3628-427d-870cdf4cdea4
diff --git a/g15daemon.conf b/g15daemon.conf
new file mode 100644 (file)
index 0000000..2d2bfc3
--- /dev/null
@@ -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 (executable)
index 0000000..b8e8cd6
--- /dev/null
@@ -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 (executable)
index 0000000..4635289
--- /dev/null
@@ -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 $?
+}
index 9a19004eeb4283acd8151efac7b1bed74b6488ab..93a7dfadf607aaf4b24cc98f5925edcdb85f8f68 100644 (file)
@@ -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 (symlink)
index 0000000..3361726
--- /dev/null
@@ -0,0 +1 @@
+/etc/init.d/g15daemon
\ No newline at end of file