From 27ffbcce0cb2726a696a4ca4a799dacdadb6f1cb Mon Sep 17 00:00:00 2001 From: Someone Date: Wed, 23 Dec 2015 21:06:56 +0100 Subject: [PATCH] start qsynergy, but change server-ip based on location. --- qsynergy.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 qsynergy.sh diff --git a/qsynergy.sh b/qsynergy.sh new file mode 100755 index 0000000..e98a827 --- /dev/null +++ b/qsynergy.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [[ "$(ip addr show | grep "inet " | grep "10\.11\.0\." | wc -l)" == "1" ]] ; then + sed -ie 's/^serverHostname=.*$/serverHostname=10.11.0.1/g' ./.config/Fidra/QSynergy.conf +elif [[ "$(ip addr show | grep "inet " | grep "128\." | wc -l)" == "1" ]] ; then + sed -ie 's/^serverHostname=.*$/serverHostname=193.170.74.102/g' ./.config/Fidra/QSynergy.conf +fi + +qsynergy & + -- 2.43.0