File: ip-up

package info (click to toggle)
doc-linux-nl 20051127-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 16,408 kB
  • ctags: 94
  • sloc: xml: 47,403; makefile: 312; perl: 193; sh: 116; ansic: 12; csh: 9
file content (23 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# filenaam: /etc/ppp/ip-up
export PATH=/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin

IFNAME=$1	# interface naam:
IFTTY=$2	# tty waar de verbinding op "draait":
IFSPEED=$3	# snelheid van de tty
LOCALIP=$4	# lokale IP address
REMOTEIP=$5	# address van de router van de provider

#########################################################################
# Hou een log file bij met connectie gegevens.
echo "  $(date)           \
	$IFNAME $IFTTY    \
        speed $IFSPEED    \
	local:$LOCALIP    \
	remote:$REMOTEIP  \
	Started." >> /var/log/dial.log

#########################################################################

exit 0
# last line