You are on page 1of 1

#!/bin/bash #This program automates task of setting up connection for Reliance USB Card on U buntu.

This program does not come with any warranty whatsoever. Please use it at your own risk. # Detect Modem echo "Modem Detected: $(lsusb grep -i huawei cut -d" " -f7-)"

# Get Connection Number from User echo "Enter Your Reliance Data Card Connection Number : " read connection echo "Setting up connection with $connection" #Install Gnome PPP Package echo "Installing Required Packages.." sudo apt-get install -y -q gnome-ppp wvdial #Add entries to /etc/ppp/ppp-secrets and /etc/ppp/chap-secrets echo "I:Modifying necessary system files to allow dialing with Gnome PPP..." sudo chmod 666 /etc/ppp/pap-secrets /etc/ppp/chap-secrets echo "$connection * $connection" >> /etc/ppp/pap-secrets echo "$connection * $connection" >> /etc/ppp/chap-secrets sudo chmod 600 /etc/ppp/pap-secrets/etc/ppp/chap-secrets #Start Gnome PPP echo "We are all set.... " echo "Starting Dialer..." gnome-ppp & exit 0

You might also like