improved checks display on some modules
This commit is contained in:
@@ -119,14 +119,14 @@ precheck_conf_network()
|
||||
if [[ -z $(eval echo \$NET4_IP_$iface) ]]; then
|
||||
prnt E "No IPv4 have been assigned to static interface $iface!"
|
||||
fi
|
||||
prnt I " * Interface $iface will have $(eval echo \$NET4_IP_$iface) static IPv4 address."
|
||||
prnt m " * Interface $iface will have $(eval echo \$NET4_IP_$iface) static IPv4 address."
|
||||
;;
|
||||
"dhcp")
|
||||
prnt I " * Interface $iface will use DHCP."
|
||||
prnt m " * Interface $iface will use DHCP."
|
||||
;;
|
||||
"manual")
|
||||
file_must_exists $(eval echo \$NET4_MANUAL_FILE_$iface)
|
||||
prnt I " * Interface $iface will use manual IPv4 configuration in a file."
|
||||
prnt m " * Interface $iface will use manual IPv4 configuration in a file."
|
||||
;;
|
||||
*)
|
||||
prnt E "Interfaces mode \"$(eval echo \$NET4_MODE_$iface)\" unsuported!"
|
||||
@@ -148,14 +148,14 @@ precheck_conf_network()
|
||||
if [[ -z $(eval echo \$NET6_IP_$iface) ]]; then
|
||||
prnt E "No IPv6 have been assigned to static interface $iface!"
|
||||
fi
|
||||
prnt I " * Interface $iface will have $(eval echo \$NET6_IP_$iface) static IPv6 address."
|
||||
prnt m " * Interface $iface will have $(eval echo \$NET6_IP_$iface) static IPv6 address."
|
||||
;;
|
||||
"dhcp")
|
||||
prnt I " * Interface $iface will use DHCPv6."
|
||||
prnt m " * Interface $iface will use DHCPv6."
|
||||
;;
|
||||
"manual")
|
||||
file_must_exists $(eval echo \$NET6_MANUAL_FILE_$iface)
|
||||
prnt I " * Interface $iface will use manual IPv6 configuration in a file."
|
||||
prnt m " * Interface $iface will use manual IPv6 configuration in a file."
|
||||
;;
|
||||
*)
|
||||
prnt E "Interfaces mode \"$(eval echo \$NET6_MODE_$iface)\" unsuported!"
|
||||
|
||||
Reference in New Issue
Block a user