~ubuntu-branches/ubuntu/trusty/dhcpcd/trusty-security

« back to all changes in this revision

Viewing changes to rc.d/rc.inet2

  • Committer: Bazaar Package Importer
  • Author(s): Simon Kelley
  • Date: 2005-09-30 02:21:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050930022151-vq3xlcazj0bdpyf4
Tags: 1:2.0.0-2
Clear out /etc/dhcpc/resolv.conf and /var/lib/dhcpc/* 
during purge. (closes: #330515)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# rc.inet2      This shell script boots up the entire INET system.
4
 
#               Note, that when this script is used to also fire
5
 
#               up any important remote NFS disks (like the /usr
6
 
#               distribution), care must be taken to actually
7
 
#               have all the needed binaries online _now_ ...
8
 
#
9
 
# Author:       Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
10
 
# Modifier:     Yoichi Hariguchi <yoichi@fore.com>  09/14/96
11
 
# Modifier:     Sergei Viznyuk <sv@phystech.com>  01/31/98
12
 
#
13
 
 
14
 
# Constants.
15
 
NET="/usr/sbin"
16
 
IN_SERV="lpd"
17
 
LPSPOOL="/var/spool/lpd"
18
 
 
19
 
# At this point, we are ready to talk to The World...
20
 
echo "Mounting remote file systems..."
21
 
/sbin/mount -a -t nfs           # This may be our /usr runtime!!!
22
 
 
23
 
echo -n "Starting daemons:"
24
 
 
25
 
# Start the SYSLOGD/Klogd daemons.  These must come first.
26
 
if [ -f ${NET}/syslogd ]; then
27
 
  echo -n " syslogd"
28
 
  ${NET}/syslogd
29
 
#  echo -n " klogd"
30
 
  echo " klogd"
31
 
  ${NET}/klogd
32
 
fi
33
 
 
34
 
# invoke DHCP client here if I do not use PCMCIA device.
35
 
# you should invoke dhcpcd from /etc/pcmcia/network
36
 
# if you use PCMCIA network card.
37
 
#
38
 
if [ ! -x /etc/rc.d/rc.pcmcia ] ; then
39
 
  if ${NET}/dhcpcd; then
40
 
    if [ -x /etc/rc.d/rc.dhcp ]; then
41
 
      /etc/rc.d/rc.dhcp
42
 
    fi
43
 
  fi
44
 
fi