vpnhide/kmod/module/customize.sh
okhsunrog 9ba7bfb127 refactor: drop WebUI and action.sh from kmod and zygisk modules
The VPN Hide app is now the sole UI for target management. WebUI was
KernelSU-Next-only and redundant since the app works on both KSU and
Magisk. Remove webroot/, action.sh, and all references across docs,
install scripts, module descriptions, and code comments.
2026-04-13 16:28:39 +03:00

26 lines
760 B
Bash

#!/system/bin/sh
SKIPUNZIP=0
ui_print "- VPN Hide (kernel) v0.1.0"
ui_print "- Installing kernel module to $MODPATH"
# Persistent config directory (survives module updates)
PERSIST_DIR="/data/adb/vpnhide_kmod"
PERSIST_TARGETS="$PERSIST_DIR/targets.txt"
mkdir -p "$PERSIST_DIR"
set_perm "$PERSIST_DIR" 0 0 0755
# Seed empty targets on fresh install
if [ ! -f "$PERSIST_TARGETS" ]; then
cat > "$PERSIST_TARGETS" <<'EOF'
# vpnhide-kmod target apps
# One package name per line. Lines starting with '#' are comments.
# Managed via the VPN Hide app.
EOF
fi
set_perm "$PERSIST_TARGETS" 0 0 0644
set_perm "$MODPATH/vpnhide_kmod.ko" 0 0 0644
ui_print "- Targets: $PERSIST_TARGETS (preserved across updates)"
ui_print "- Pick target apps via the VPN Hide app."