Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit d0ef32f

Browse files
committed
more verbose about our config
1 parent a328823 commit d0ef32f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/configure_freebsd_ci_jail.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,29 @@ jailName=$1
66
skelDirectory=$2
77
cbsd_workdir=/usr/jails
88
jail_arch="i386"
9-
jail_ver="11.2"
9+
jail_ver="11.3"
1010

1111
pkg install -y cbsd
1212

13+
echo "Pkg configuration:"
14+
cat /etc/pkg/FreeBSD.conf
15+
1316
# determine uplink ip address
1417
# determine uplink iface
18+
echo "Interface configuration:"
19+
/sbin/ifconifg -a
1520
auto_iface=$( /sbin/route -n get 0.0.0.0 |/usr/bin/awk '/interface/{print $2}' )
1621
my_ipv4=$( /sbin/ifconfig ${auto_iface} | /usr/bin/awk '/inet [0-9]+/{print $2}' )
1722

1823
if [ -z "${my_ipv4}" ]; then
1924
echo "IPv4 not detected"
2025
exit 1
2126
fi
27+
echo "IPv4 routing table:"
28+
netstat -rnf inet
29+
echo "IPv6 routing table:"
30+
netstat -rnf inet6
31+
echo "${auto_iface} has been selected, with ${my_ipv4} IPv4 address"
2232

2333
echo "Writing '${jailName}' configuration file"
2434
cat > /tmp/${jailName}.jconf << EOF

0 commit comments

Comments
 (0)