Restore per-interface domain resolvers
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user