Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 niro 796 #!/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