Last change
on this file since eec6401 was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago |
Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
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 |
|
---|
18 | case "$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 | ;;
|
---|
60 | esac
|
---|
61 |
|
---|
62 | # End $rc_base/init.d/paneld
|
---|
63 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.