diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2012-06-03 10:07:58 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2012-06-03 10:07:58 +0200 |
commit | 075e33ca803378fa42187ecf5fd44a57e061a84a (patch) | |
tree | 3e27a24788e2ca698eecca8eda99978c4239ecc0 /recipes/trdx-config/files |
Initial commit
Diffstat (limited to 'recipes/trdx-config/files')
-rw-r--r-- | recipes/trdx-config/files/COPYING | 5 | ||||
-rw-r--r-- | recipes/trdx-config/files/base-feed.conf | 5 | ||||
-rw-r--r-- | recipes/trdx-config/files/inittab | 42 | ||||
-rw-r--r-- | recipes/trdx-config/files/noarch-feed.conf | 2 | ||||
-rwxr-xr-x | recipes/trdx-config/files/nvrm_daemon | 37 |
5 files changed, 91 insertions, 0 deletions
diff --git a/recipes/trdx-config/files/COPYING b/recipes/trdx-config/files/COPYING new file mode 100644 index 0000000..040e990 --- /dev/null +++ b/recipes/trdx-config/files/COPYING @@ -0,0 +1,5 @@ +This piece is software is provided by Toradex AG as sample code. +There is no warranty for the program. +Toradex AG put this program in public domain, uncopyrighted. + +Renens, Swizterland, 2008-10-23 diff --git a/recipes/trdx-config/files/base-feed.conf b/recipes/trdx-config/files/base-feed.conf new file mode 100644 index 0000000..6fd2130 --- /dev/null +++ b/recipes/trdx-config/files/base-feed.conf @@ -0,0 +1,5 @@ +src/gz base http://www.angstrom-distribution.org/feeds/next/ipk/eglibc/armv7a-vfp/base +src/gz base2 http://www.angstrom-distribution.org/feeds/next/ipk/eglibc/armv6/base +src/gz base3 http://www.angstrom-distribution.org/feeds/next/ipk/eglibc/armv5te/base +src/gz base4 http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv6/base +src/gz base5 http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv5te/base
\ No newline at end of file diff --git a/recipes/trdx-config/files/inittab b/recipes/trdx-config/files/inittab new file mode 100644 index 0000000..a43057d --- /dev/null +++ b/recipes/trdx-config/files/inittab @@ -0,0 +1,42 @@ +# /etc/inittab: init(8) configuration. +# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ + +# The default runlevel. +id:5:initdefault: + +# Boot-time system configuration/initialization script. +# This is run first except when booting in emergency (-b) mode. +si::sysinit:/etc/init.d/rcS + +# What to do in single-user mode. +~~:S:wait:/sbin/sulogin + +# /etc/init.d executes the S and K scripts upon change +# of runlevel. +# +# Runlevel 0 is halt. +# Runlevel 1 is single-user. +# Runlevels 2-5 are multi-user. +# Runlevel 6 is reboot. + +l0:0:wait:/etc/init.d/rc 0 +l1:1:wait:/etc/init.d/rc 1 +l2:2:wait:/etc/init.d/rc 2 +l3:3:wait:/etc/init.d/rc 3 +l4:4:wait:/etc/init.d/rc 4 +l5:5:wait:/etc/init.d/rc 5 +l6:6:wait:/etc/init.d/rc 6 +# Normally not reached, but fallthrough in case of emergency. +z6:6:respawn:/sbin/sulogin +S:2345:respawn:/sbin/getty 115200 ttyS0 +# /sbin/getty invocations for the runlevels. +# +# The "id" field MUST be the same as the last +# characters of the device (after "tty"). +# +# Format: +# <id>:<runlevels>:<action>:<process> +# + +1:2345:respawn:/sbin/getty 115200 tty1 + diff --git a/recipes/trdx-config/files/noarch-feed.conf b/recipes/trdx-config/files/noarch-feed.conf new file mode 100644 index 0000000..d2b1835 --- /dev/null +++ b/recipes/trdx-config/files/noarch-feed.conf @@ -0,0 +1,2 @@ +src/gz no-arch http://www.angstrom-distribution.org/feeds/next/ipk/eglibc/all +src/gz no-arch2 http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/all diff --git a/recipes/trdx-config/files/nvrm_daemon b/recipes/trdx-config/files/nvrm_daemon new file mode 100755 index 0000000..c3a9268 --- /dev/null +++ b/recipes/trdx-config/files/nvrm_daemon @@ -0,0 +1,37 @@ +#!/bin/sh +# +# Start or stop the Nvidia Ressource Manager Daemon. +# +# Based on debian apmd scripts + +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +[ -f /etc/default/rcS ] && . /etc/default/rcS + +case "$1" in + start) + echo -n "Nvidia Ressource Manager Daemon: " + start-stop-daemon -S -x /bin/nvrm_daemon -- --daemon & + if [ $? = 0 ]; then + echo "nvrm_daemon." + else + echo "(failed.)" + fi + ;; + stop) + echo -n "Nvidia Ressource Manager Daemon: " + start-stop-daemon -K -x /bin/nvrm_daemon + echo "nvrm_daemon." + ;; + restart|force-reload) + $0 stop + $0 start + exit + ;; + *) + echo "Usage: /etc/init.d/nvrm_daemon {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 |