git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2477
94cd875c-1c1d-0410-91d2-
eb244daf1a30
_setup_writeSingleOption "$mask" $d/mask
_setup_writeSingleOption "$prefix" $d/prefix
- test -n "$dev" -o -n "$SETUP_NETDEV" || \
- echo $"No device specified for interface '$idx'; do not forget to set the 'nodev' option" >&2
+ test -n "$dev" -o -n "$SETUP_NETDEV" || {
+ echo $"No device specified for interface '$idx'; setting 'nodev'" >&2
+ $_TOUCH $d/nodev
+ }
}
function setup_setDefaults