cd /
export HOME=/tmp TMPDIR=/tmp
if is_no "$RC_LOGGING"; then
- ${user:+setuidgid -s $user} "$@" 2>&1
+ ${user:+setuidgid -s $user} eval "$@" 2>&1
else
${user:+setuidgid -s $user} initlog -c "$*" 2>&1
fi
exit 1
fi
-if ! grep -qlE "ONBOOT=[^n][^o]" /etc/sysconfig/interfaces/ifcfg-${VLAN_DEV}; then
+if ! grep -qlE "ONBOOT=[^n][^o]" /etc/sysconfig/interfaces/ifcfg-${VLAN_DEV} 2>/dev/null; then
nls "Warning: ${VLAN_DEV} is disabled on boot."
fi
find_boot_interfaces() {
ifcfg_files="$(network_interface_configs 'ifcfg-*')"
- bootprio=$(grep '^BOOTPRIO=' $ifcfg_files)
+ bootprio=$(grep '^BOOTPRIO=' $ifcfg_files 2>/dev/null)
if [ -n "$bootprio" ]; then
# find all the interfaces besides loopback.