Add initial stuff
This commit is contained in:
parent
7853e6174e
commit
144b2b9ebb
2
storage-net/common.lua
Normal file
2
storage-net/common.lua
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
-- MASTER SCRIPT
|
||||||
|
require "config"
|
@ -15,14 +15,7 @@ slaveid="1"
|
|||||||
_ccroot="$mcroot/.minecraft/saves/$world/computercraft/computer"
|
_ccroot="$mcroot/.minecraft/saves/$world/computercraft/computer"
|
||||||
echo "Root: $_ccroot"
|
echo "Root: $_ccroot"
|
||||||
for computer in $masterid $slaveid; do
|
for computer in $masterid $slaveid; do
|
||||||
:
|
cp common.lua "$_ccroot/$masterid/autostart.lua"
|
||||||
done
|
done
|
||||||
if [ -f master.lua ]; then
|
cp masterconfig.lua "$_ccroot/$masterid/config.lua"
|
||||||
echo "Deploying master to $masterid"
|
cp slaveconfig.lua "$_ccroot/$slaveid/config.lua"
|
||||||
cp master.lua "$_ccroot/$masterid/autostart.lua"
|
|
||||||
fi
|
|
||||||
if [ -f slave.lua ]; then
|
|
||||||
echo "Deploying slave to $slaveid"
|
|
||||||
cp slave.lua "$_ccroot/$slaveid/autostart.lua"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
1
storage-net/masterconfig.lua
Normal file
1
storage-net/masterconfig.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
mode = "master"
|
1
storage-net/slaveconfig.lua
Normal file
1
storage-net/slaveconfig.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
mode = "slave"
|
Loading…
Reference in New Issue
Block a user