mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-07-26 09:23:53 +00:00
24 lines
586 B
Bash
Executable file
24 lines
586 B
Bash
Executable file
#!/system/bin/sh
|
|
# Boot-time config delivery for the kmod backend. The activator owns JSON ->
|
|
# protocol projection and waits for backend/PackageManager readiness.
|
|
|
|
MODDIR="${0%/*}"
|
|
ACTIVATOR="$MODDIR/activator"
|
|
|
|
apply_at_boot() {
|
|
if [ ! -x "$ACTIVATOR" ]; then
|
|
log -t vpnhide "kmod: activator missing at $ACTIVATOR"
|
|
return 1
|
|
fi
|
|
|
|
if "$ACTIVATOR" --boot-wait; then
|
|
log -t vpnhide "kmod: activator finished boot config"
|
|
else
|
|
rc=$?
|
|
log -t vpnhide "kmod: activator failed rc=$rc"
|
|
return "$rc"
|
|
fi
|
|
}
|
|
|
|
apply_at_boot &
|
|
exit 0
|