#!/bin/sh if [ "$(id -u)" -ne 0 ] then echo "Please run as root." >&2 exit 1 fi if ! which pptpsetup > /dev/null 2>&1 then echo "Please install pptpsetup..." >&2 exit 1 fi name="ehb_tunnel" ip="193.190.238.38" read -p "username: " username stty -echo # disable terminal output read -p "password: " password stty echo echo pptpsetup \ --create "$name" \ --server "$ip" \ --username "$username" \ --password "$password" \ --encrypt && cat >&2 <