linamh/net-misc/ibm-jping/files/jping-2.0-pre

33 lines
636 B
Plaintext
Raw Normal View History

#
# Copyright (c) 2007, Mario Fetka <mario-fetka@gmx.at>
#
# Licensed under the GNU General Public License, v2
dotibmdir="${HOME}/.ibm"
jpingcfg="${dotibmdir}/JPing.ini"
create_initial_config() {
if [[ ! -e "${dotibmdir}" ]] ; then
mkdir "${dotibmdir}"
echo "Creating ${dotibmdir}"
fi
echo "Creating ${jpingcfg}"
# Create the config file
cat > "${jpingcfg}" <<END
-- listing properties --
JPingScheduledMinutes=0
JPingHttpProxyHost=
JPingSocksProxyPort=1080
EnableProxy=NONE
JPingSocksProxyHost=
MsgNotification=false
xServer1=mars.arge.at
JPingHttpProxyPort=8080
END
}
[[ ! -e "${jpingcfg}" ]] && create_initial_config