Magellan Linux

Contents of /trunk/ppp/ip-upd-50-initd.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 796 - (show annotations) (download) (as text)
Mon May 11 09:39:21 2009 UTC (14 years, 11 months ago) by niro
File MIME type: application/x-sh
File size: 292 byte(s)
new ip up down from gentoo

1 #!/bin/sh
2
3 # Activates correspondent net.${iface} service
4 # Used parameters and environment variables:
5 # $1 - interface name (e.g. ppp0)
6
7 if [ -x /etc/init.d/net.$1 ]; then
8 if ! /etc/init.d/net.$1 --quiet status ; then
9 export IN_BACKGROUND="true"
10 /etc/init.d/net.$1 --quiet start
11 fi
12 fi