aboutsummaryrefslogtreecommitdiff
path: root/rc.multi
blob: 0e8629f11e0bd038ecbfa88a42a77ef9933c36ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# /etc/rc.multi
#

. /etc/rc.conf
. /etc/rc.d/functions

# Start pcmcia
if [ "$PCMCIA" = "yes" -a -f /etc/rc.d/pcmcia ]; then
  /etc/rc.d/pcmcia start
fi

stat_busy "Starting Network"
/sbin/ifconfig lo 127.0.0.1 netmask 255.255.255.255
if [ "$IPADDR" != "" -a "$NETMASK" != "" ]; then
  /sbin/ifconfig eth0 $IPADDR netmask $NETMASK
  if [ "$GATEWAY" != "" ]; then
    /sbin/route add default gw $GATEWAY
  fi
fi
stat_done

# Start daemons
for daemon in "${DAEMONS[@]}"; do
  /etc/rc.d/$daemon start
done

if [ -x /etc/rc.local ]; then
    /etc/rc.local
fi

# End of file