mirror of
https://github.com/aljazceru/shurikenpi.io.git
synced 2025-12-17 06:04:23 +01:00
add shortcut
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
source ./global.sh
|
||||
source ./utils.sh
|
||||
|
||||
new_configuration(){
|
||||
msg logo.txt
|
||||
p "We will create a new configuration"
|
||||
msg wallet_suggestions.txt
|
||||
@@ -23,4 +25,8 @@ chmod +x ../Worker/worker.sh
|
||||
echo "address: $address" > ../Worker/worker.conf
|
||||
echo "pool: $mining_pool" >> ../Worker/worker.conf
|
||||
p "Ready to boil the oceans captain!"
|
||||
p_ok "To start mining, use the command 'shuriken start'"
|
||||
echo ""
|
||||
}
|
||||
|
||||
new_configuration
|
||||
21
shuriken.sh
Executable file
21
shuriken.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
command=$1
|
||||
shift
|
||||
cd ./Scripts
|
||||
|
||||
if [[ $command == "stop" ]]; then
|
||||
./stop.sh $@
|
||||
fi
|
||||
if [[ $command == "start" ]]; then
|
||||
./start.sh $@
|
||||
fi
|
||||
if [[ $command == "run" ]]; then
|
||||
./start.sh $@
|
||||
fi
|
||||
if [[ $command == "status" ]]; then
|
||||
./status.sh $@
|
||||
fi
|
||||
if [[ $command == "config" ]]; then
|
||||
./create_configuration.sh $@
|
||||
fi
|
||||
Reference in New Issue
Block a user