This displays errors in whatever fashion the distro prefers, which seems
like a good idea. We have to use a shell function so that the redirection
to a temporary file doesn't write the messages for the admin to the file
instead of the console.
done
}
+save_interfaces () {
+ "$datadir/scripts/ovs-save" $ifaces > "$script"
+}
+
force_reload_kmod () {
ifaces=`internal_interfaces`
action "Detected internal interfaces: $ifaces" true
stop
script=`mktemp`
- action "Save interface configuration to $script" true
- if "$datadir/scripts/ovs-save" $ifaces > "$script"; then
+ if action "Save interface configuration to $script" save_interfaces; then
:
else
log_warning_msg "Failed to save configuration, not replacing kernel module"