blob: 32b8d0d95ff6d63c186e8553ec8cd40579637352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
# no firmware switch by default
ENABLED="no"
[ -r /etc/default/cell-radio-fwswitch ] && source /etc/default/cell-radio-fwswitch
[ "$ENABLED" == "yes" ] || exit 0
# It may take a couple of boots to get the APN straightened out.
# mlinux-switch-apn is only effective for LNA3. It will only
# take action if it detects a different SIM from the one
# that is configured. It requires a RADIO that is active.
# The script is executed in the background to prevent holding up the
# boot.
case $1 in
start)
(/usr/sbin/mlinux-switch-apn 2>&1 | logger -p daemon.notice) &
;;
*)
echo "Usage: $0 {start}"
exit 2
;;
esac
|