a570f5ca08
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1520 6952d904-891a-0410-993b-d76249ca496b
33 lines
636 B
Plaintext
33 lines
636 B
Plaintext
#
|
|
# 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
|