search for: ifcfg_dir

Displaying 1 result from an estimated 1 matches for "ifcfg_dir".

2010 Mar 10
1
[PATCH] Fixes how o-process-config handles missing field names or values.
...eld) == 0) { + print "Missing field name." + exit 1 + } + + if(length(value) == 0) { + print "Missing field value." + exit 2 + } + printf("set %s/ifcfg-%s/%s %s\n", ifcfg_dir, iface, field, value) } } }' $CONFIG) +SUCCESS=$? + +if [ SUCCESS != 0 ]; then + case $SUCCESS in + 1) error="missing field name";; + 2) error="missing field value";; + esac + + die "Bad data received: ${error}" +fi + echo...