d111845391
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2185 6952d904-891a-0410-993b-d76249ca496b
33 lines
656 B
Plaintext
33 lines
656 B
Plaintext
#
|
|
# Copyright (c) 2007-2010, 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=www.disconnected-by-peer.at
|
|
JPingHttpProxyPort=8080
|
|
END
|
|
}
|
|
|
|
[[ ! -e "${jpingcfg}" ]] && create_initial_config
|