You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
399 B
Bash
16 lines
399 B
Bash
#!/bin/bash
|
|
|
|
# Start a zLeaf with the given arguments
|
|
if [ $# == 2 ]; then
|
|
DISPLAY=:0.0 /usr/bin/wine /opt/z-Leaves/zTree_$1/zleaf.exe /server $2 &
|
|
exit
|
|
fi
|
|
if [ $# == 3 ]; then
|
|
DISPLAY=:0.0 /usr/bin/wine /opt/z-Leaves/zTree_$1/zleaf.exe /server $2 /channel $3 &
|
|
exit
|
|
fi
|
|
if [ $# == 4 ]; then
|
|
DISPLAY=:0.0 /usr/bin/wine /opt/z-Leaves/zTree_$1/zleaf.exe /server $2 /channel $3 /name $4 &
|
|
exit
|
|
fi
|