Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # by rotor cause im bored
- #
- instirc()
- {
- echo "1 ) Eggdrop"
- echo "2 ) irssi"
- echo "3) psybnc"
- read -p "Enter Number to configure and install!# "
- if [ $REPLY == "1" ]; then
- echo "Reading config files for eggdrop"
- source config/eggdrop.cfg
- if [ -x /bin/wget ];
- echo "using webget on $web_url"
- wget $web_url
- tar -zxvf $eggname
- cd $eggName
- ./configure
- make iconfig
- make
- pico eggdrop.conf
- fi
- if [ $REPLY == "2" ]; then
- echo "Reading config files for eggdrop"
- source config/irssi.cfg
- echo "using webget on $web_url"
- fi
- if [ $REPLY == "3" ]; then
- echo "Reading config files for psybnc"
- source config/psybnc.cfg
- fi
- }
- print_usage()
- {
- echo "Usage: $0 [-i]"
- return
- }
- if [ $# -eq 0 ];
- then
- print_usage
- exit 1
- fi
- while getopts i opt
- do
- case "$opt" in
- i) instirc;;
- \?) print_usage; exit 1;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement