r1545 - / trunk/bootscripts/lfs/init.d

jim at linuxfromscratch.org jim at linuxfromscratch.org
Tue May 9 16:47:55 PDT 2006


Author: jim
Date: 2006-05-09 17:47:54 -0600 (Tue, 09 May 2006)
New Revision: 1545

Added:
   trunk/bootscripts/lfs/init.d/paneld
Modified:
   /
Log:
 r3349 at server (orig r1574):  jim | 2006-05-09 16:42:57 -0700
 Added: paneld for RaQ2



Property changes on: 
___________________________________________________________________
Name: svk:merge
   - b6734a72-470d-0410-b049-f317dca95413:/:1572
   + b6734a72-470d-0410-b049-f317dca95413:/:1574

Added: trunk/bootscripts/lfs/init.d/paneld
===================================================================
--- trunk/bootscripts/lfs/init.d/paneld	                        (rev 0)
+++ trunk/bootscripts/lfs/init.d/paneld	2006-05-09 23:47:54 UTC (rev 1545)
@@ -0,0 +1,63 @@
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/paneld
+#
+# Description : Show Messages on the LCD Panel
+#
+# Author      : Jim Gifford - jim at linuxfromscratch.org
+#
+# Version     : 00.00
+#
+# Notes       :
+#
+########################################################################
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+case "$1" in
+	start)
+		boot_mesg "Setting up LCD Panel"
+		ip addr show dev eth0 > /dev/null 2>&1
+		if [ "$?" = "0" ]; then
+			IFACE1_IP="`ip addr show dev eth0 | grep inet | cut -d / -f 1 | cut -d t  -f 2 | cut -d' ' -f 2 `"
+			IFACE1="$IFACE1_IP"
+		fi
+		ip addr show dev eth1 > /dev/null 2>&1
+		if [ "$?" = "0" ]; then
+			IFACE2_IP="`ip addr show dev eth1 | grep inet | cut -d / -f 1 | cut -d t  -f 2 | cut -d' ' -f 2 `"
+			IFACE2="$IFACE2_IP"
+		fi
+		COMMON="Hold S & E Menu"
+		if [ "$IFACE2" = "" ]; then
+			loadproc paneld -d "Lan1 $IFACE1" "$COMMON"
+		else
+			loadproc paneld -d "Lan1 $IFACE1" "Lan2 $IFACE2" "$COMMON"
+		fi
+
+	;;
+
+        stop)
+                boot_mesg "Clearing LCD Panel..."
+                putlcd "Clearing" "LCD Panel"
+                killproc paneld
+                ;;
+
+        restart)
+                ${0} stop
+                sleep 1
+                ${0} start
+                ;;
+
+        status)
+                statusproc paneld
+                ;;
+
+	*)
+		echo "Usage: {start|stop|restart|status}"
+		exit 1
+		;;
+esac
+
+# End $rc_base/init.d/paneld
+




More information about the cross-lfs mailing list