#!/bin/sh
+set -e
+
net=$1
saveifs="$IFS"
ifup_pre
+# need to check to make sure the link exists
+test ip link show dev $dev >/dev/null 2>&1 || exit 1
+
ip link set dev $dev up
if [ "$addr" = 'dhcp' ]; then
mountpoint -q /dev/shm
status_check
-#status_begin mounting virtual filesystems
-#mount /proc &&
-#mount /sys &&
-#mount /dev
-#status_check
+# bash seems to rely on this
+ln -s /proc/self/fd /dev/fd
# * set the host name
status_begin Setting hostname
swapon -a
-
# mount any remaining filesystems
status_begin mounting remaining filesystems
-mount -a -t noproc,sysfs,devtmpfs,devpts
+mount -a -t noproc,sysfs,devtmpfs,devpts,tmpfs
status_check
rm -f /etc/mtab