mkjail.sh

Check-in [32a9c7f9ae]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Cannot reliable use set -u in this script
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:32a9c7f9aeb53a5ec42d4032665aca01b13804c4127e935da038047b55ccdf69
User & Date: feld 2018-10-02 21:25:54
Context
2018-10-03
16:57
Commit missing files. I don't understand why my merge from the other branch did't do this... check-in: bb7ddbd8cd user: feld tags: master, trunk
2018-10-02
21:25
Cannot reliable use set -u in this script check-in: 32a9c7f9ae user: feld tags: master, trunk
21:24
Merge properly (I think) check-in: 2439df6e88 user: feld tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/share/mkjail/create.sh.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e
set -u

: ${ARCH=$(uname -m)}
jflag=0
vflag=0

ip4int=$(route -4 get default | awk '/interface: / {print $2}')
ip6int=$(route -6 get default | awk '/interface: / {print $2}')
ip4guess=$(ifconfig ${ip4int} | awk '/inet / && !/127.0/ {print $2}' | head -n 1)
ip6guess=$(ifconfig ${ip6int} | awk '/inet6 / && !/(fe80| ::1)/ {print $2}' | head -n 1)

show_help() {


<


<
<







1
2

3
4


5
6
7
8
9
10
11
#!/bin/sh
set -e


: ${ARCH=$(uname -m)}



ip4int=$(route -4 get default | awk '/interface: / {print $2}')
ip6int=$(route -6 get default | awk '/interface: / {print $2}')
ip4guess=$(ifconfig ${ip4int} | awk '/inet / && !/127.0/ {print $2}' | head -n 1)
ip6guess=$(ifconfig ${ip6int} | awk '/inet6 / && !/(fe80| ::1)/ {print $2}' | head -n 1)

show_help() {