This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1998204
commit 116bf3a
Showing
4 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
#!/bin/sh | ||
|
||
echo "Installing experiment..." | ||
echo "Installing DOOM..." | ||
chown -R exp272:exp272 /home/exp272 | ||
chmod -R 770 /home/exp272 | ||
chmod +x /home/exp272/src/chocolate-doom | ||
ln -s /home/exp272/lib/libSDL-1.2.so.0 /lib/libSDL-1.2.so.0 | ||
ln -s /home/exp272/lib/libSDL_mixer-1.2.so.0 /lib/libSDL_mixer-1.2.so.0 | ||
ln -s /home/exp272/lib/libSDL_net-1.2.so.0 /lib/libSDL_net-1.2.so.0 | ||
chmod +x /home/exp272/src/opssat-doom | ||
chmod +x /home/exp272/start_exp272.sh | ||
chmod +x /home/exp272/smartcam/start.sh | ||
|
||
# Backup the SmartCam config | ||
if [ -e "/home/exp1000/config.ini" ] && [ ! -e "/home/exp1000/config.ini.backup" ]; then | ||
mv /home/exp1000/config.ini /home/exp1000/config.ini.backup | ||
fi | ||
|
||
# Check if /home/exp1000 directory exists before attempting to overwrite the SmartCam config | ||
if [ -d "/home/exp1000" ]; then | ||
cp /home/exp272/smartcam/config.ini /home/exp1000/config.ini | ||
fi | ||
|
||
echo "Installation completed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/sh | ||
rm /lib/libSDL-1.2.so.0 | ||
rm /lib/libSDL_mixer-1.2.so.0 | ||
rm /lib/libSDL_net-1.2.so.0 | ||
|
||
# Restore the backup of the SmartCam config | ||
if [ -e "/home/exp1000/config.ini.backup" ]; then | ||
cp /home/exp1000/config.ini.backup /home/exp1000/config.ini | ||
rm -f /home/exp1000/config.ini.backup | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters