Skip to content

Commit

Permalink
Fix misplaced shebang of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbraun committed Jul 13, 2020
1 parent e7ccd2a commit 2f6bf31
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
6 changes: 4 additions & 2 deletions scripts/simspark/killServer.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
#*******************************************************************************
# Copyright 2008 - 2020 Hochschule Offenburg
#
Expand All @@ -15,8 +16,9 @@
# You should have received a copy of the GNU General Public License
# along with magmaOffenburg. If not, see <http://www.gnu.org/licenses/>.
#*******************************************************************************

while [ true ]
do
sleep 120s
killall -9 rcssserver3d
sleep 120s
killall -9 rcssserver3d
done
3 changes: 2 additions & 1 deletion scripts/simspark/simspark-fastmode.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
#*******************************************************************************
# Copyright 2008 - 2020 Hochschule Offenburg
#
Expand All @@ -15,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with magmaOffenburg. If not, see <http://www.gnu.org/licenses/>.
#*******************************************************************************
#!/bin/bash

sed -i "s/\$agentSyncMode = false/\$agentSyncMode = true/" ~/.simspark/spark.rb
sudo sed -i "s/\$enableRealTimeMode = true/\$enableRealTimeMode = false/" /usr/local/share/rcssserver3d/rcssserver3d.rb

3 changes: 2 additions & 1 deletion scripts/simspark/simspark-normalmode.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
#*******************************************************************************
# Copyright 2008 - 2020 Hochschule Offenburg
#
Expand All @@ -15,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with magmaOffenburg. If not, see <http://www.gnu.org/licenses/>.
#*******************************************************************************
#!/bin/bash

sed -i "s/\$agentSyncMode = true/\$agentSyncMode = false/" ~/.simspark/spark.rb
sudo sed -i "s/\$enableRealTimeMode = false/\$enableRealTimeMode = true/" /usr/local/share/rcssserver3d/rcssserver3d.rb

9 changes: 5 additions & 4 deletions scripts/simspark/simsparkAutoRestart.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
#*******************************************************************************
# Copyright 2008 - 2020 Hochschule Offenburg
#
Expand All @@ -15,9 +16,9 @@
# You should have received a copy of the GNU General Public License
# along with magmaOffenburg. If not, see <http://www.gnu.org/licenses/>.
#*******************************************************************************
#!/bin/bash

while true
do
rcssserver3d
sleep 1
done
rcssserver3d
sleep 1
done
5 changes: 2 additions & 3 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
#*******************************************************************************
# Copyright 2008 - 2020 Hochschule Offenburg
#
Expand All @@ -15,11 +16,9 @@
# You should have received a copy of the GNU General Public License
# along with magmaOffenburg. If not, see <http://www.gnu.org/licenses/>.
#*******************************************************************************
#!/bin/bash
###########################################
# Starts a magmaFatProxy
# example: bash start.sh 127.0.0.1 3100 3110
###########################################
#*******************************************************************************

if [ $# -ne 3 ]; then
echo "Usage: $0 <Simspark server IP> <Simspark server Port> <Proxy server port>"
Expand Down

0 comments on commit 2f6bf31

Please sign in to comment.