rc.inet (372B)
1 #!/bin/sh 2 3 . /etc/rc.conf 4 RCINIT=1 . /lib/g_fun.sh 5 6 if [ ! -e "${G_LOGFILE}" ]; then 7 G_LOGFILE=/dev/null 8 fi 9 10 msg info "Bringing up lo interface" 11 ip addr add 127.0.0.1/8 dev lo broadcast + scope host 2>>${G_LOGFILE} 12 ip link set lo up 2>>${G_LOGFILE} 13 14 if [ -n "${INTERFACE}" ]; then 15 msg info "Bringing up %s" ${INTERFACE} 16 ip link set "${INTERFACE}" up 2>>${G_LOGFILE} 17 fi