Sha256: 332a6e081d28378bb5f829aaf848bf47d71b5b93b63da0604bae08998a8a84ef
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
#!/bin/bash fail="" match="BOOTPROTO=dhcp" for file in /etc/sysconfig/networking/devices/* ; do if [[ -f $file ]] ; then output="$(grep -i $match $file &>/dev/null)" if [[ $? == 0 ]]; then fail="${fail} ${file}" fi fi done if [[ -z "$fail" ]] ; then echo "OK" else echo "network.config.dhcp: [FAIL]" echo -n "devices configured to use ${match}:" echo "$fail" fi
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hostlint-0.0.1 | examples/checks/network/config/bootproto_dhcp.sh |