previous up next contents
Previous: qsl_sync_syslog Up: Batches génériques Next: qsn_sync_network_madras   Contents

qsn_sync_network


#! /bin/bash

test `whoami` = "root" || {
  echo "root only can do that ! " ; exit 1 
  }

/etc/init.d/network reload

while test "`ifconfig ppp0 2> /dev/null | grep 'inet addr'`"
 do echo still alive
done

qsr_sync_route

if test $1
 then /usr/sbin/pppoed24 &
 while ! test "`ifconfig ppp0 2> /dev/null | grep 'inet addr'`"
  do echo not yet alive > /dev/null
 done
fi

ifconfig

echo "-----------------"
martians


previous up next contents
Previous: qsl_sync_syslog Up: Batches génériques Next: qsn_sync_network_madras   Contents


douillet@ensait.fr
2003-06-24