Commit dead85ce authored by hightime's avatar hightime

rebase

parent 1e950d70
#!/bin/bash
. $hightimeFolder/variables
hightime=${hightime:-/root/hightime}
. $hightime/functions
while true ; do
. $hightimeFolder/fortune-command
. $hightime/fortune-command
sleep 9
done
#!/bin/bash
if [ -z $hightimeFolder ] ; then
echo "hightimeFolder variable unset, aborting"
exit 1
fi
. $hightimeFolder/variables
hightime=${hightime:-/root/hightime}
. $hightime/functions
mtGame=minetest
cd $tmp
......
#!/bin/bash
hightime=${hightime:-/root/hightime}
. $hightime/functions
mtGame=minetest
addUser $mtGame
......
#!/bin/bash
if [ -z $hightimeFolder ] ; then
echo "hightimeFolder variable unset, aborting"
exit 1
fi
. $hightimeFolder/variables
hightime=${hightime:-/root/hightime}
. $hightime/functions
oaGame=oaffa
cd $tmp
......
#!/bin/bash
hightime=${hightime:-/root/hightime}
. $hightime/functions
oaGame=oaffa
addUser $oaGame
......
#!/bin/bash
if [ -z $hightimeFolder ] ; then
echo "hightimeFolder variable unset, aborting"
exit 1
fi
. $hightimeFolder/variables
hightime=${hightime:-/root/hightime}
. $hightime/functions
oaGame=oagib
cd $tmp
......
#!/bin/bash
hightime=${hightime:-/root/hightime}
. $hightime/functions
oaGame=oagib
addUser $oaGame
......
#!/bin/bash
hightime=${hightime:-/root/hightime}
. $hightime/functions
xoGame=xoffa
addUser $xoGame
......
#!/bin/bash
if [ -z $hightimeFolder ] ; then
echo "hightimeFolder variable unset, aborting"
exit 1
fi
. $hightimeFolder/variables
hightime=${hightime:-/root/hightime}
. $hightime/functions
xoGame=xoffa
cd $tmp
......
#!/bin/bash
hightime=${hightime:-/root/hightime}
. $hightime/functions
xoGame=xogib
addUser $xoGame
......
#!/bin/bash
if [ -z $hightimeFolder ] ; then
echo "hightimeFolder variable unset, aborting"
exit 1
fi
. $hightimeFolder/variables
hightime=${hightime:-/root/hightime}
. $hightime/functions
xoGame=xogib
cd $tmp
......
#!/bin/bash
echo '#!/bin/bash' > /etc/rc.local
echo "export hightimeFolder=$cwd" >> /etc/rc.local
echo "nohup $cwd/fortune-server &" >> /etc/rc.local
echo "$cwd/games/oaffa/oaffa-start &" >> /etc/rc.local
echo "$cwd/games/oagib/oagib-start &" >> /etc/rc.local
......
#!/bin/bash
oaGame="$1"
hightime=${hightime:-/root/hightime}
. $hightime/functions
cd $(dirname $0)
. ./functions
if [[ $? != 0 ]] ; then
echo "try running this script from the directory it's in,"
echo "you silly goose"
exit 1
fi
oaGame="$1"
if [[ $oaGame != oaffa && $oaGame != oagib ]] ; then
echo 'shuffle-oa-maps [ oaffa | oagib ]'
exit 1
fi
cwd=$(pwd)
cd /home/$oaGame
if [[ $? != 0 ]] ; then
echo $oaGame not installed, aborting
exit 1
fi
cp -v $cwd/games/$oaGame/$oaGame-map-list $oaBaseoaDir
cp -v $hightime/games/$oaGame/$oaGame-map-list $oaBaseoaDir
cd $oaBaseoaDir
. $cwd/reorder-maps $oaGame-map-list
. $hightime/reorder-maps $oaGame-map-list
echo fixing permissions...
chown -R $oaGame /home/$oaGame/$oaBaseoaDir
chgrp -R $oaGame /home/$oaGame/$oaBaseoaDir
#!/bin/bash
. ./functions
if [[ $? != 0 ]] ; then
echo "you have to run this script from the directory it's in,"
echo "you silly goose"
exit 1
fi
cwd=$(pwd)
hightime=${hightime:-/root/hightime}
. $hightime/functions
killall minetest-start
killall minetestserver
export hightimeFolder=$cwd
$cwd/games/minetest/minetest-start &> /dev/null &
$hightime/games/minetest/minetest-start &> /dev/null &
echo let us wait a second or two while it is starting...
sleep 2
screen -ls minetest
......
#!/bin/bash
. ./functions
if [[ $? != 0 ]] ; then
echo "you have to run this script from the directory it's in,"
echo "you silly goose"
exit 1
fi
cwd=$(pwd)
hightime=${hightime:-/root/hightime}
. $hightime/functions
killall minetest-start
killall minetestserver
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment