24 lines
474 B
Bash
24 lines
474 B
Bash
|
|
#!/system/bin/sh
|
||
|
|
# CellGuard — early-boot config load
|
||
|
|
# Runs in post-fs-data context, before zygote.
|
||
|
|
|
||
|
|
MODDIR=${0%/*}
|
||
|
|
CONFIG_DIR="/data/adb/cellguard"
|
||
|
|
CONFIG_FILE="$CONFIG_DIR/config.sh"
|
||
|
|
|
||
|
|
mkdir -p "$CONFIG_DIR"
|
||
|
|
|
||
|
|
if [ ! -f "$CONFIG_FILE" ]; then
|
||
|
|
cat > "$CONFIG_FILE" << 'DEFAULTS'
|
||
|
|
# CellGuard configuration — persisted across reboots.
|
||
|
|
# Edited by WebUI or /system/bin/cellguard.
|
||
|
|
|
||
|
|
ENABLED=1
|
||
|
|
BLOCK_2G=1
|
||
|
|
BLOCK_3G=1
|
||
|
|
BLOCK_NULL_CIPHER=1
|
||
|
|
POLL_MS=1500
|
||
|
|
CARRIER=none
|
||
|
|
DEFAULTS
|
||
|
|
fi
|