source: bootscripts/lfs/init.d/paneld@ 45bf79c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 45bf79c was 426a9f3, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: paneld for RaQ2

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[426a9f3]1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/paneld
4#
5# Description : Show Messages on the LCD Panel
6#
7# Author : Jim Gifford - jim@linuxfromscratch.org
8#
9# Version : 00.00
10#
11# Notes :
12#
13########################################################################
14
15. /etc/sysconfig/rc
16. $rc_functions
17
18case "$1" in
19 start)
20 boot_mesg "Setting up LCD Panel"
21 ip addr show dev eth0 > /dev/null 2>&1
22 if [ "$?" = "0" ]; then
23 IFACE1_IP="`ip addr show dev eth0 | grep inet | cut -d / -f 1 | cut -d t -f 2 | cut -d' ' -f 2 `"
24 IFACE1="$IFACE1_IP"
25 fi
26 ip addr show dev eth1 > /dev/null 2>&1
27 if [ "$?" = "0" ]; then
28 IFACE2_IP="`ip addr show dev eth1 | grep inet | cut -d / -f 1 | cut -d t -f 2 | cut -d' ' -f 2 `"
29 IFACE2="$IFACE2_IP"
30 fi
31 COMMON="Hold S & E Menu"
32 if [ "$IFACE2" = "" ]; then
33 loadproc paneld -d "Lan1 $IFACE1" "$COMMON"
34 else
35 loadproc paneld -d "Lan1 $IFACE1" "Lan2 $IFACE2" "$COMMON"
36 fi
37
38 ;;
39
40 stop)
41 boot_mesg "Clearing LCD Panel..."
42 putlcd "Clearing" "LCD Panel"
43 killproc paneld
44 ;;
45
46 restart)
47 ${0} stop
48 sleep 1
49 ${0} start
50 ;;
51
52 status)
53 statusproc paneld
54 ;;
55
56 *)
57 echo "Usage: {start|stop|restart|status}"
58 exit 1
59 ;;
60esac
61
62# End $rc_base/init.d/paneld
63
Note: See TracBrowser for help on using the repository browser.