Restore per-interface domain resolvers

This commit is contained in:
ushan0v
2026-07-12 21:38:58 +03:00
parent cea4ab4505
commit afc05c9100
22 changed files with 3063 additions and 2433 deletions
+11 -1
View File
@@ -340,6 +340,12 @@ EOF
cat > "$control_dir/conffiles" <<'EOF'
/etc/config/forkop
EOF
cat > "$control_dir/postinst" <<'EOF'
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] && exit 0
FORKOP_LIB=/usr/lib/forkop ucode -L /usr/lib/forkop /usr/lib/forkop/config/migration.uc migrate
EOF
cat > "$control_dir/prerm" <<'EOF'
@@ -351,7 +357,7 @@ if (getenv("IPKG_INSTROOT") == null || getenv("IPKG_INSTROOT") == "")
exit(0);
EOF
chmod 0755 "$control_dir/prerm"
chmod 0755 "$control_dir/postinst" "$control_dir/prerm"
}
write_app_ipk_control() {
@@ -487,6 +493,8 @@ EOF
cat > "$scripts_dir/backend-post-install.sh" <<'EOF'
#!/usr/bin/ucode
if (getenv("IPKG_INSTROOT") == null || getenv("IPKG_INSTROOT") == "")
exit(system("FORKOP_LIB=/usr/lib/forkop ucode -L /usr/lib/forkop /usr/lib/forkop/config/migration.uc migrate"));
exit(0);
EOF
@@ -506,6 +514,8 @@ EOF
cat > "$scripts_dir/backend-post-upgrade.sh" <<'EOF'
#!/usr/bin/ucode
if (getenv("IPKG_INSTROOT") == null || getenv("IPKG_INSTROOT") == "")
exit(system("FORKOP_LIB=/usr/lib/forkop ucode -L /usr/lib/forkop /usr/lib/forkop/config/migration.uc migrate"));
exit(0);
EOF