#!/bin/sh -e # Called when a new interface comes up # Written by HÃ¥vard Espeland # Adapted from script by LaMont Jones RUNNING="" if [ -f /var/run/ypbind.pid ]; then pid=$(sed 's/ //g' /var/run/ypbind.pid) exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //;s/.*\///') if [ "X$exe" = "Xypbind" ]; then RUNNING="y" fi fi if [ -z "$RUNNING" ]; then /etc/init.d/nis start fi