diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2011-07-17 10:18:46 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2011-07-17 10:18:46 +0200 |
commit | cc10636f91dbd514ffe712325e10b7c1509678f3 (patch) | |
tree | 4cd7847255c249d08a759820a916dc5c9a51a692 /src/host/layer23/src/mobile/app_mobile.c | |
parent | af06f002191cf988e8a606f9b7d1711b8d56ff8d (diff) |
[mobile] Adding security warning, if default IMEI is not changed
Diffstat (limited to 'src/host/layer23/src/mobile/app_mobile.c')
-rw-r--r-- | src/host/layer23/src/mobile/app_mobile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c index d68b724d..164f3edb 100644 --- a/src/host/layer23/src/mobile/app_mobile.c +++ b/src/host/layer23/src/mobile/app_mobile.c @@ -203,6 +203,13 @@ int mobile_init(struct osmocom_ms *ms) ms->shutdown = 0; ms->started = 0; + if (!strcmp(ms->settings.imei, "000000000000000")) { + printf("***\nWarning: Mobile '%s' has default IMEI: %s\n", + ms->name, ms->settings.imei); + printf("This could relate your identitiy to other users with " + "default IMEI.\n***\n"); + } + l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL); printf("Mobile '%s' initialized, please start phone now!\n", ms->name); return 0; |