+echo "$5 gateway" >> /tmp/hosts
+touch /var/ipfire/red/active
+mv /tmp/hosts /etc/hosts
+
+#Start pingtest in background and store the pid
+ping -c 2 $5 > /tmp/gatewayping &
+PINGPID=$!
+
+run_subdir ${rc_base}/init.d/networking/red.up/
+
+[ -e "/var/ipfire/ppp/nobeeps" ] || /etc/rc.d/init.d/beep up
+
+#Make sure that pingtest has enough time
+sleep 3