#!/bin/bash # get the username from the parameters USER=$2 # if there is a session already for this user, terminate the old one rm -f /var/run/ppp/current_user/$USER echo $2 link down ! >> /var/run/ppp/user_access.log