File: base.conf

package info (click to toggle)
libreswan 5.2-2.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 81,656 kB
  • sloc: ansic: 129,988; sh: 32,018; xml: 20,646; python: 10,303; makefile: 3,022; javascript: 1,506; sed: 574; yacc: 511; perl: 264; awk: 52
file content (68 lines) | stat: -rw-r--r-- 1,697 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# bsdinstall(8) configuration.

# This is added to the install ISO as /etc/installerconf.

DISTRIBUTIONS=""
DISTRIBUTIONS="${DISTRIBUTIONS} base.txz"
DISTRIBUTIONS="${DISTRIBUTIONS} kernel.txz"
DISTRIBUTIONS="${DISTRIBUTIONS} ports.txz"
DISTRIBUTIONS="${DISTRIBUTIONS} src.txz"
DISTRIBUTIONS="${DISTRIBUTIONS} tests.txz"

PARTITIONS=vtbd0
export TERM=vt100

#
# stuff run after install finishes
#
#!/bin/sh

# make serial permanent
cat <<EOF >> /boot/loader.conf
comconsole_speed="115200"
console="comconsole"
autoboot_delay="1"
EOF

sysrc hostname=freebsd
sysrc ifconfig_vtnet0=DHCP

# Fudge up the ROOT's shell prompt so that it includes the exit code
# expected by kvmsh vis:
#
#   [root@freebsd ~ 0]#
#   [root@freebsd ~ 1]#
#
# transmogrify will switch the shell to bash once that is installed
#
# FreeBSD 13 used CSH but FreeBSD 14 switched to a pretty lame
# implementation of SH.  Switch it back.

chsh -s /bin/csh root
cat <<EOF > /root/.cshrc
if ( \$?prompt)  then
        # An interactive shell -- set some stuff up
        set prompt = "[%N@%m %~ %?]%# "
        set promptchars = "%#"

        set filec
        set history = 1000
        set savehist = (1000 merge)
        set autolist = ambiguous
        # Use history to aid expansion
        set autoexpand
        set autorehash
        set mail = (/var/mail/$USER)
        if ( \$?tcsh ) then
                bindkey "^W" backward-delete-word
                bindkey -k up history-search-backward
                bindkey -k down history-search-forward
        endif
endif
EOF

mkdir /pool /bench
cat <<EOF >> /etc/fstab
@@GATEWAY@@:@@POOLDIR@@     /pool       nfs     rw
@@GATEWAY@@:@@BENCHDIR@@    /bench       nfs     rw
EOF