File: kxc-premount-net

package info (click to toggle)
kxd 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 352 kB
  • sloc: python: 536; sh: 233; makefile: 64
file content (29 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download | duplicates (6)
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
#!/bin/sh

# Configure networking before mounting.

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
        prereqs
        exit 0
        ;;
esac

. /scripts/functions

configure_networking

# Configure a basic resolv.conf based on our networking.
if ! [ -s /etc/resolv.conf ]; then
	echo "nameserver $IPV4DNS0" >> /etc/resolv.conf
fi