source: projects/initscripts/trunk/NetworkManager/dispatcher.d/05-netfs @ 1108

Revision 1108, 343 bytes checked in by daisuke, 14 years ago (diff)

import initscripts-8.90.6 from internal cvs repository

Line 
1#!/bin/sh
2
3export LC_ALL=C
4
5if [ "$2" = "down" ]; then
6        /sbin/ip route ls | grep -q ^default || {
7                [ -f /var/lock/subsys/netfs ] && /etc/rc.d/init.d/netfs stop ||:
8        } && { :; }
9fi
10
11if [ "$2" = "up" ]; then
12        /sbin/ip -o route show dev "$1" | grep -q '^default' && {
13                /sbin/chkconfig netfs && /etc/rc.d/init.d/netfs start ||:
14        } || { :; }
15fi
16
Note: See TracBrowser for help on using the repository browser.