From 7fe6a59dfd76c9b6902b748b2db8d63d70ee8525 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 26 Jun 2010 17:10:02 +0200 Subject: finetune kernel configuration, enable initramfs rootfs and enable reset button alix2d has a reset button, which might be used to startup a rescue system or anything you think about. add a small daemon from ipcop forum to implement this. See: http://www.ipcop-forum.de/forum/viewtopic.php?f=7&t=19183&hilit=alixswitch&start=30 finetune kernel configuration, enable MFGPT timers. Disable unsupported MTRR. Enable watchdog. Enable initramfs and initramfs+piggyback for alix targets. --- package/alix-switch/files/alix-switch.init | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/alix-switch/files/alix-switch.init (limited to 'package/alix-switch/files/alix-switch.init') diff --git a/package/alix-switch/files/alix-switch.init b/package/alix-switch/files/alix-switch.init new file mode 100644 index 000000000..c783a1be5 --- /dev/null +++ b/package/alix-switch/files/alix-switch.init @@ -0,0 +1,27 @@ +#!/bin/sh +#PKG alix-switch +#INIT 10 + +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${alix_switch:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + alix-switchd -d + ;; +stop) + pkill alix-switchd + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 (start|stop|restart)" + exit 1 +esac +exit $? -- cgit v1.2.3