Benign Download

minimal-x86-64/nixos-minimal-25.05.813814.ac62194c3917-x86_64-linux/nix-store.squashfs.d/fwdxvbsvgbjqlk3dy2vpb2why3mdpnd6-openresolv-3.13.2/libexec/resolvconf

Shell evaluates variable commandShell command redirects output to file
SHA-25699a1a151e056d2cd2d915e7b3ad144e6bb08fa0c93bc4c9ac0681912cabca521
MaleculeH₂(FPo₂)

Evidence

English function-word token "the" lines 1–12
1#!/bin/sh
2# Copyright (c) 2009-2023 Roy Marples
3# All rights reserved
4
5# unbound subscriber for resolvconf
6
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions
9# are met:
10# * Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer.
12# * Redistributions in binary form must re …
Evaluates a shell command string lines 29–57
29:5… und_insecure=
30
31[ -f "/etc"/resolvconf.conf ] || exit 0
32. "/etc/resolvconf.conf" || exit 1
33[ -z "$unbound_conf" ] && exit 0
34[ -z "$RESOLVCONF" ] && eval "$(/nix/store/fwdxvbsvgbjqlk3dy2vpb2why3mdpnd6-openresolv-3.13.2/sbin/resolvconf -v)"
35NL="
36"
37
38: ${unbound_pid:=/var/run/unbound.pid}
39: ${unbound_service:=unbound}
40newconf="# Generated by resolvconf$NL"
41
42for d in $DOMAINS; do
⋯15 lines
Eval of shell variable content lines 76–91
⋯4 lines
80{
81 if [ -n "$unbound_restart" ]; then
82 eval $unbound_restart
83 elif [ -n "$RESTARTCMD" ]; then
84 set -- ${unbound_service}
85 eval "$RESTARTCMD"
86 else
87 /nix/store/fwdxvbsvgbjqlk3dy2vpb2why3mdpnd6-openresolv-3.13.2/sbin/resolvconf -r ${unbound_service}
⋯4 lines
Shell printf redirects output to a file lines 92–103
92 [ "$(cat "$unbound_conf")" != "$(printf %s "$newconf")" ]
93then
94 printf %s "$newconf" >"$unbound_conf"
95 # If we can't sent a HUP then force a restart
96 if [ -s "$unbound_pid" ]; then
97 if ! kill -HUP $(cat "$unbound_pid") 2>/dev/null; then
98 restart_unbound
99 fi
⋯4 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.