Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dial on demand
Message
General information
Forum:
Linux
Category:
Networking, Installation and Administration issues
Title:
Miscellaneous
Thread ID:
00707212
Message ID:
00707568
Views:
18
>Could any body please inform me in detail how to create dial on demand connection for my internet dial up service? (my server is RH7.2) TIA
>
>Regards
>Winan

Check out mgetty and initab. mgetty has documentation. It tells you to add lines to initab
I installed mgetty and added the following lines to initab
# modem getty.
mo:23:respawn:/usr/sbin/mgetty -s 57600 /dev/ttyS0    <-- serial port connected to modem which is connected to phone
.....
When they logged in my own bash shell script handled the login. It was called bbs_login and was stored in /etc/skel so that when a new account was created my shell script was put into the home directory, and run instead of bash.
#set TMOUT=600
PATH=$PATH:":."
clearscr(){
clear;
ls *.001;
echo "Hello, $LOGNAME, Select your choice: "; 
echo "1) Change Password";
echo "2) Download previously downloaded files using 3 digit Julian dates. Today:$(date +%j)";
echo "3) Download all new files since your last download"
echo "4) Quit";
}
clearscr
while true
do
  echo -n "Choice? "
  read mychoice
  case $mychoice in
    1)
	clear
	echo "Passwords must be between 6 to 8 letters and/or numbers, NO spaces"
	echo "Simple passwords, like numbers, sequential letters, most names, etc., "
	echo "will be rejected.  If you fail to enter your new password twice"  
	echo "your old passward will be retained.  If you forgot your password"
	echo "contact Kathy Moore by phone or email."
	echo " "
	passwd $LOGNAME
	echo "$LOGNAME did a Password change" >> /tmp/bbs_users_log
	;;
    2)
	badnames="Bad Julian Dates"
	fext=".001d"
	goodnames=""
	clear
	ls *.001d
	echo "Enter 1 or more 3-digit Julian Dates, separated by a space (Example: 001 129 365):" 
	read juliandays
	for julian in $juliandays
	do
	  fname="$LOGNAME$julian$fext"
	  if [ -f $fname ] && [ -n $fname ]
	    then
	      echo "Sending $fname"
	      sz --zmodem --ascii $fname
	      sleep 1
	      read trash
	      goodnames=$goodnames" "$fname
	      echo "$LOGNAME Downloaded file:$fname on $(date)">> /tmp/bbs_users_log 
	    else
	      badnames=$badnames" "$julian
	    fi
  	done
	echo "$LOGNAME $badnames">> /tmp/bbs_users_log 
	clear	
	echo "You downloaded: "
	echo $goodnames
	echo "Press return to continue..."
	read trash
	;;
    3)
	next="*.001"
	goodfiles=""
	for fname in $next
	do
	  echo "Sending $fname"
	   sz --zmodem --ascii $fname
	  sleep 1
	  goodfiles=$goodfiles" "$fname
	  echo "$LOGNAME Downloaded file:$fname on $(date)">> /tmp/bbs_users_log 
  	done
	read trash
	next="*.001"
	for fname in $next
	do
	  newname=$fname"d"
	  mv $fname $newname
	done
	clear
	echo "You downloaded: $goodfiles"
	echo " "
	echo "Download of new files has finished,  You have been disconnected!"
	exit
	;;
    4)
	clear
	echo "Thank you!  You have been disconnected!"
	;;
    *)
	echo -n "$mychoice is NOT a choice"
	sleep 2
  esac
  clearscr
done
JLK
Nebraska Dept of Revenue
Previous
Reply
Map
View

Click here to load this message in the networking platform