diff options
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 057e5c3..405da6a 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Not using the usual taybox args system, coz it's not working as advertised. | 6 | * Not using the usual taybox args system, coz it's not working as advertised. |
7 | 7 | ||
8 | USE_SLEDJCHISL(NEWTOY(sledjchisl, "qa", TOYFLAG_USR|TOYFLAG_BIN)) | 8 | USE_SLEDJCHISL(NEWTOY(sledjchisl, "qia", TOYFLAG_USR|TOYFLAG_BIN)) |
9 | 9 | ||
10 | config SLEDJCHISL | 10 | config SLEDJCHISL |
11 | bool "sledjchisl" | 11 | bool "sledjchisl" |
@@ -20,29 +20,42 @@ config SLEDJCHISL | |||
20 | will create a sim. | 20 | will create a sim. |
21 | start | 21 | start |
22 | start -q | 22 | start -q |
23 | start sim01 | 23 | start Welcome |
24 | start Welcome.ini | ||
25 | start Welcome.shini | ||
24 | start "Welcome sim" | 26 | start "Welcome sim" |
25 | Will start a sim or everything. | 27 | Will start a sim or everything. |
26 | -q when starting everything wont show the tmux console. | 28 | -q when starting everything wont show the tmux console. |
27 | backup | 29 | backup |
28 | backup "Joan Smith" | 30 | backup -i |
29 | backup sim01 | 31 | backup -i "Joan Smith" |
32 | backup Welcome | ||
33 | backup Welcome.ini | ||
34 | backup Welcome.shini | ||
30 | backup "Welcome sim" | 35 | backup "Welcome sim" |
31 | Will backup sim or everything. | 36 | Will backup sim or everything. |
32 | gitar i "Joan Smith" | 37 | gitar i "Joan Smith" |
33 | gitar o sim01 | 38 | gitar Welcome |
39 | gitar Welcome.ini | ||
40 | gitar Welcome.shini | ||
34 | gitar o "Welcome sim" | 41 | gitar o "Welcome sim" |
35 | restart | 42 | restart |
36 | restart sim01 | 43 | restart Welcome |
44 | restart Welcome.ini | ||
45 | restart Welcome.shini | ||
37 | restart "Welcome sim" | 46 | restart "Welcome sim" |
38 | Will stop then start a sim, or everything. | 47 | Will stop then start a sim, or everything. |
39 | status | 48 | status |
40 | status sim01 | 49 | status Welcome |
50 | status Welcome.ini | ||
51 | status Welcome.shini | ||
41 | status "Welcome sim" | 52 | status "Welcome sim" |
42 | Will show status of a sim, or everything. | 53 | Will show status of a sim, or everything. |
43 | stop | 54 | stop |
44 | stop -a | 55 | stop -a |
45 | stop sim01 | 56 | stop Welcome |
57 | stop Welcome.ini | ||
58 | stop Welcome.shini | ||
46 | stop "Welcome sim" | 59 | stop "Welcome sim" |
47 | Will stop a sim, or everything. | 60 | Will stop a sim, or everything. |
48 | -a when stopping everything will close down all tmux windows and panes. | 61 | -a when stopping everything will close down all tmux windows and panes. |
@@ -1767,7 +1780,7 @@ void doSimsThing(simData *simd, char *sim, char *type, int count, int window, in | |||
1767 | 1780 | ||
1768 | switch (currentMode) | 1781 | switch (currentMode) |
1769 | { | 1782 | { |
1770 | case START : // "start sim01" "start 'Welcome sim'" "start Welcome.ini" "start Welcome" "start" start everything | 1783 | case START : // "start 'Welcome sim'" "start Welcome.shini" "Welcome.shini" "start Welcome.ini" "start Welcome" "start" start everything |
1771 | { | 1784 | { |
1772 | if (!checkSimIsRunning(simd->tab)) | 1785 | if (!checkSimIsRunning(simd->tab)) |
1773 | { | 1786 | { |
@@ -1793,7 +1806,7 @@ void doSimsThing(simData *simd, char *sim, char *type, int count, int window, in | |||
1793 | break; | 1806 | break; |
1794 | } | 1807 | } |
1795 | 1808 | ||
1796 | case BACKUP : // "backup 'onefang rejected'" "backup sim01" "backup 'Welcome Sim'" "backup" backup everything | 1809 | case BACKUP : // "backup -i 'onefang rejected'" "backup 'Welcome sim'" "backup Welcome.shini" "Welcome.shini backup" "backup Welcome.ini" "backup Welcome" "backup" backup everything |
1797 | { // TODO - If it's not a sim code, and not a sim name, it's an account inventory. | 1810 | { // TODO - If it's not a sim code, and not a sim name, it's an account inventory. |
1798 | if (checkSimIsRunning(simd->tab)) | 1811 | if (checkSimIsRunning(simd->tab)) |
1799 | { | 1812 | { |
@@ -1840,7 +1853,7 @@ void doSimsThing(simData *simd, char *sim, char *type, int count, int window, in | |||
1840 | break; | 1853 | break; |
1841 | } | 1854 | } |
1842 | 1855 | ||
1843 | case STOP : // "stop sim01" "stop 'Welcome Sim'" "stop" stop everything | 1856 | case STOP : // "stop 'Welcome sim'" "stop Welcome.shini" "Welcome.shini stop" "stop Welcome.ini" "stop Welcome" "stop" stop everything |
1844 | { | 1857 | { |
1845 | if (checkSimIsRunning(simd->tab)) | 1858 | if (checkSimIsRunning(simd->tab)) |
1846 | { | 1859 | { |