]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
chore(network-legacy): no need to call chmod on ifup.sh
authorJo Zzsi <jozzsicsataban@gmail.com>
Mon, 24 Mar 2025 13:12:13 +0000 (09:12 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 13 Apr 2025 00:21:39 +0000 (20:21 -0400)
This is a small optimization, with the goal of avoiding
calling chmod for a file that is already guaranteed to be
an executable.

modules.d/35network-legacy/ifup.sh

index 1cd27b14db89dbac7ee67caf4190899cc373bae3..59629f11135e5629375ef55b93916f9c0e03b9eb 100755 (executable)
@@ -47,7 +47,6 @@ do_dhcp_parallel() {
         echo 'dhcp=dhclient' >> /run/NetworkManager/conf.d/10-dracut-dhclient.conf
     fi
 
-    chmod +x /sbin/dhcp-multi.sh
     /sbin/dhcp-multi.sh "$netif" "$DO_VLAN" "$@" &
     return 0
 }