Accidentally deleted directory "/etc/network/if-up.d/"

retiarylime

New Member
Mar 16, 2024
2
0
1
Hi. I accidentally deleted directory "/etc/network/if-up.d/". Previously the directory contain:

```
-rwxr-xr-x 1 root root 965 Jan 5 2022 000resolvconf
-rwxr-xr-x 1 root root 358 Feb 18 20:02 avahi-autoipd
-rwxr-xr-x 1 root root 450 Feb 18 19:46 bridgevlan
-rwxr-xr-x 1 root root 499 Feb 18 19:47 bridgevlanport
-rwxr-xr-x 1 root root 298 Feb 18 19:47 chrony
-rwxr-xr-x 1 root root 113 Feb 18 19:39 ethtool
-rwxr-xr-x 1 root root 422 Feb 18 19:48 ifenslave
-rwxr-xr-x 1 root root 169 Feb 18 19:49 mtu
-rwxr-xr-x 1 root root 454 Feb 18 19:50 openvpn
-rwxr-xr-x 1 root root 234 Feb 18 20:08 postfix
-rwxr-xr-x 1 root root 358 Feb 18 20:00 resolved
lrwxrwxrwx 1 root root 32 Aug 6 2024 wpasupplicant -> ../../wpa_supplicant/ifupdown.sh

```
How to manually recreate all the files?
 
Hi retiearylime,

I came across your post just by now, so things might be late. Maybe it can be useful still.

If I check on my host which packages the files source from, this is the result:

Code:
dpkg -S  /etc/network/if-up.d/*
pve-manager: /etc/network/if-up.d/bridgevlan
pve-manager: /etc/network/if-up.d/bridgevlanport
chrony: /etc/network/if-up.d/chrony
ethtool: /etc/network/if-up.d/ethtool
pve-manager: /etc/network/if-up.d/mtu
postfix: /etc/network/if-up.d/postfix
wpasupplicant: /etc/network/if-up.d/wpasupplicant

You could try to reinstall these packages (plus the ones you added yourself [i do not see openvpn, avahi-autoipd, resolved, ifenslave here on my system, please check from which packages they came from] with:

Code:
apt install --reinstall $PACKAGENAME

Good luck and all the best,
Daniel