Lines 1-29
Link Here
|
1 |
--- scripts/dw-start.sh.orig 2021-12-17 15:56:10 UTC |
1 |
--- scripts/dw-start.sh.orig 2022-01-28 14:55:02 UTC |
2 |
+++ scripts/dw-start.sh |
2 |
+++ scripts/dw-start.sh |
3 |
@@ -1,4 +1,4 @@ |
3 |
@@ -68,9 +68,9 @@ DWCMD="$DIREWOLF -a 100" |
4 |
-#!/usr/bin/bash |
|
|
5 |
+#!%%PREFIX%%/bin/bash |
6 |
|
4 |
|
7 |
# Why not simply "#!/bin/bash" ? |
|
|
8 |
|
5 |
|
9 |
@@ -133,14 +133,14 @@ function GUI { |
6 |
#Where will logs go - needs to be writable by non-root users |
10 |
# Auto adjust the startup for your particular environment: gnome-terminal, xterm, etc. |
7 |
-LOGFILE=/var/tmp/dw-start.log |
11 |
# |
8 |
+#LOGFILE=/var/tmp/dw-start.log |
|
|
9 |
+LOGFILE=/var/var/dw-start.log |
12 |
|
10 |
|
13 |
- if [ -x /usr/bin/lxterminal ]; then |
11 |
- |
14 |
- /usr/bin/lxterminal -t "Dire Wolf" -e "$DWCMD" & |
12 |
#------------------------------------- |
15 |
+ if [ -x %%PREFIX%%/bin/lxterminal ]; then |
13 |
# Main functions of the script |
16 |
+ %%PREFIX%%/bin/lxterminal -t "Dire Wolf" -e "$DWCMD" & |
14 |
#------------------------------------- |
17 |
SUCCESS=1 |
15 |
@@ -157,7 +157,7 @@ function GUI { |
18 |
- elif [ -x /usr/bin/xterm ]; then |
16 |
# When running from cron, we have a very minimal environment |
19 |
- /usr/bin/xterm -bg white -fg black -e "$DWCMD" & |
17 |
# including PATH=/usr/bin:/bin. |
20 |
+ elif [ -x %%PREFIX%%/bin/xterm ]; then |
18 |
# |
21 |
+ %%PREFIX%%/bin/xterm -bg white -fg black -e "$DWCMD" & |
19 |
-export PATH=/usr/local/bin:$PATH |
22 |
SUCCESS=1 |
20 |
+export PATH=%%PREFIX%%/bin:$PATH |
23 |
- elif [ -x /usr/bin/x-terminal-emulator ]; then |
21 |
|
24 |
- /usr/bin/x-terminal-emulator -e "$DWCMD" & |
22 |
#Log the start of the script run and re-run |
25 |
+ elif [ -x %%PREFIX%%/bin/x-terminal-emulator ]; then |
23 |
date >> $LOGFILE |
26 |
+ %%PREFIX%%/bin/x-terminal-emulator -e "$DWCMD" & |
|
|
27 |
SUCCESS=1 |
28 |
else |
29 |
echo "Did not find an X terminal emulator. Reverting to CLI mode" |