This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, master has been updated via d81baab208e93a892049779b10433b5534945472 (commit) via 9f84d3130f687782cc69fb2c69e0a1bb9dfb630d (commit) from e1cf3df51e10284e6cfd63d1a3d9f04f2d935442 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit d81baab208e93a892049779b10433b5534945472 Author: Michael Tremer michael.tremer@ipfire.org Date: Fri Apr 30 17:03:15 2010 +0200
Add support for alix2 leds.
This script enables led 2 and 3 of the alix boards and they will show traffic on the red device.
commit 9f84d3130f687782cc69fb2c69e0a1bb9dfb630d Author: Michael Tremer michael.tremer@ipfire.org Date: Fri Apr 30 16:52:26 2010 +0200
Load cryptodev module by default to use the kernel crypto engines for nearly everything.
-----------------------------------------------------------------------
Summary of changes: lfs/initscripts | 3 ++ src/initscripts/init.d/leds | 69 +++++++++++++++++++++++++++++++++++++ src/initscripts/sysconfig/modules | 4 ++ 3 files changed, 76 insertions(+), 0 deletions(-) create mode 100644 src/initscripts/init.d/leds
Difference in files: diff --git a/lfs/initscripts b/lfs/initscripts index 56c4222..38870b8 100644 --- a/lfs/initscripts +++ b/lfs/initscripts @@ -147,6 +147,9 @@ $(TARGET) : ln -sf ../init.d/cyrus-sasl /etc/rc.d/rc0.d/K49cyrus-sasl ln -sf ../init.d/cyrus-sasl /etc/rc.d/rc3.d/S24cyrus-sasl ln -sf ../init.d/cyrus-sasl /etc/rc.d/rc6.d/K49cyrus-sasl + ln -sf ../init.d/leds /etc/rc.d/rc0.d/K79leds + ln -sf ../init.d/leds /etc/rc.d/rc3.d/S21leds + ln -sf ../init.d/leds /etc/rc.d/rc6.d/K79leds ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs ln -sf ../init.d/modules /etc/rc.d/rcsysinit.d/S05modules ln -sf ../init.d/udev /etc/rc.d/rcsysinit.d/S10udev diff --git a/src/initscripts/init.d/leds b/src/initscripts/init.d/leds new file mode 100644 index 0000000..4927b63 --- /dev/null +++ b/src/initscripts/init.d/leds @@ -0,0 +1,69 @@ +#!/bin/sh +######################################################################## +# Begin $rc_base/init.d/leds +# +# Description : Script to setup leds at boot. +# +######################################################################## + +. /etc/sysconfig/rc +. ${rc_functions} + +# Load ethernet settings +eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings) + +setup_red_modem() { + local led1=${1} + local led2=${2} + + modprobe ledtrig-netdev + + local i + for i in ${led1} ${led2}; do + echo "netdev" > ${i}/trigger + echo "${RED_DEV}" > ${i}/device_name + done + + echo "rx" > ${led1}/mode + echo "tx" > ${led2}/mode +} + +reset_trigger() { + [ -d "${1}" ] || return 0 + echo "none" > ${1}/trigger +} + +start_alix2() { + modprobe -q leds-alix2 + + local i + for i in 1 2 3; do + if [ ! -d "/sys/class/leds/alix:${i}" ]; then + return 1 + fi + done + + setup_red_modem /sys/class/leds/alix:2 /sys/class/leds/alix:3 +} + +stop_alix2() { + local i + for i in 1 2 3; do + reset_trigger /sys/class/leds/alix:${i} + done +} + +case "${1}" in + start|stop) + for i in alix2; do + ${1}_${i} + done + ;; + + *) + echo "Usage: ${0} {start|stop}" + exit 1 + ;; +esac + +# End $rc_base/init.d/leds diff --git a/src/initscripts/sysconfig/modules b/src/initscripts/sysconfig/modules index 5f8a77d..cdbcca4 100644 --- a/src/initscripts/sysconfig/modules +++ b/src/initscripts/sysconfig/modules @@ -33,4 +33,8 @@ lp ### fusion # fusion
+### cryptodev +# +cryptodev + # End /etc/sysconfig/modules
hooks/post-receive -- IPFire 2.x development tree