File: test-correct-interface-order

package info (click to toggle)
resolvconf 1.94
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 544 kB
  • sloc: sh: 906; makefile: 19; sed: 13
file content (18 lines) | stat: -rwxr-xr-x 336 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

eval "$(sed -n '/^PATTERNS=/,/"/p' bin/list-records)"

diff -u etc/resolvconf/interface-order - --label interface-order --label list-records <<EOF
# interface-order(5)
$PATTERNS
EOF

if [ $? = 1 ]
then
	echo "
Interface order list in bin/list-records and etc/resolvconf/interface-order do not match.
" >&2
	exit 2
fi

exit 0