summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/vty_interface.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-01-07 10:39:59 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2013-01-07 10:39:59 +0100
commit25c5e8221d94a7a5885d3bcd38d35da86bf17313 (patch)
tree9066ba3693795a5815f3504eb2c7c7ed9f3cb9a6 /src/host/layer23/src/mobile/vty_interface.c
parentee7fbbda22aedcdd8b6e3a5828fbdafd84571d72 (diff)
mobile: Improved exit of mobile process, reset phone
If mobile phone has started, it is reset after shutdown. This ensures that the phone is not transmitting anymore, especially while shutting down in dedicated mode. Using CTRL+c: The first signal causes initiating of shutdown with detach procedure. The second signal causes initiating of shutdown without detach procedure. The third signal will exit process immidiately. (in case it hangs) Using CTRL+z: The first signal causes initiating of shutdown without detach procedure. A subsequent CTRL+c would exit process immidiately.
Diffstat (limited to 'src/host/layer23/src/mobile/vty_interface.c')
-rw-r--r--src/host/layer23/src/mobile/vty_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/layer23/src/mobile/vty_interface.c b/src/host/layer23/src/mobile/vty_interface.c
index 4d7f6a27..95653c78 100644
--- a/src/host/layer23/src/mobile/vty_interface.c
+++ b/src/host/layer23/src/mobile/vty_interface.c
@@ -2607,11 +2607,11 @@ DEFUN(cfg_no_shutdown, cfg_ms_no_shutdown_cmd, "no shutdown",
struct osmocom_ms *ms = vty->index, *tmp;
int rc;
- if (ms->shutdown != 2)
+ if (ms->shutdown != 3)
return CMD_SUCCESS;
llist_for_each_entry(tmp, &ms_list, entity) {
- if (tmp->shutdown == 2)
+ if (tmp->shutdown == 3)
continue;
if (!strcmp(ms->settings.layer2_socket_path,
tmp->settings.layer2_socket_path)) {