Changeset 14145 in hybrid
- Timestamp:
- Apr 25, 2018, 10:34:21 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-11/nanobsd/files/tools/nameserver-shuffle
r13924 r14145 55 55 ML=`awk '/^nameserver/ {l=length($4);if (l>ml){ml=l}}END{print ml}' $DYNLIST` 56 56 # awk magic allows adding or updating of status of nameserver 57 awk '/^nameserver[[:blank:]]+'"$NAMESERVER"'[[:blank:]] */ {printf "nameserver %-16s # %-'$ML's (%s)\n", $2, $4,"'"$STATUS"'"}' $DYNLIST >> $NEWRESOLV || exit 157 awk '/^nameserver[[:blank:]]+'"$NAMESERVER"'[[:blank:]]+/ {printf "nameserver %-16s # %-'$ML's (%s)\n", $2, $4,"'"$STATUS"'"}' $DYNLIST >> $NEWRESOLV || exit 1 58 58 done 59 59 $verbose && echo "################################"
Note:
See TracChangeset
for help on using the changeset viewer.