Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.22 KB | None | 0 0
  1. #!/bin/bash
  2. # by rotor cause im bored
  3. #
  4.  
  5. instirc()
  6. {
  7.         echo "1 ) Eggdrop"
  8.         echo "2 ) irssi"
  9.         echo "3) psybnc"
  10.  
  11.         read -p "Enter Number to configure and install!# "
  12.         if [ $REPLY == "1" ]; then
  13.                 echo "Reading config files for eggdrop"
  14.                 source config/eggdrop.cfg
  15.                 if [ -x /bin/wget ];
  16.  
  17.                 echo "using webget on $web_url"
  18.                 wget $web_url
  19.                 tar -zxvf $eggname
  20.                 cd $eggName
  21.                 ./configure
  22.                 make iconfig
  23.                 make
  24.                 pico eggdrop.conf
  25.         fi
  26.         if [ $REPLY == "2" ]; then
  27.                 echo "Reading config files for eggdrop"
  28.                 source config/irssi.cfg
  29.                 echo "using webget on $web_url"
  30.         fi
  31.         if [ $REPLY == "3" ]; then
  32.                 echo "Reading config files for psybnc"
  33.                 source config/psybnc.cfg
  34.         fi
  35. }
  36. print_usage()
  37. {
  38.         echo "Usage: $0 [-i]"
  39.         return
  40. }
  41.  
  42. if [ $# -eq 0 ];
  43. then
  44.         print_usage
  45.         exit 1
  46. fi
  47.  
  48. while getopts i opt
  49. do
  50.     case "$opt" in
  51.         i) instirc;;
  52.         \?) print_usage; exit 1;;
  53.     esac
  54. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement