003-udhcpc-quiet.patch 924 B

123456789101112131415161718192021
  1. diff -Nur busybox-1.25.0.orig/networking/ifupdown.c busybox-1.25.0/networking/ifupdown.c
  2. --- busybox-1.25.0.orig/networking/ifupdown.c 2016-05-26 19:42:44.000000000 +0200
  3. +++ busybox-1.25.0/networking/ifupdown.c 2016-06-25 01:14:51.656598262 +0200
  4. @@ -537,7 +537,7 @@
  5. },
  6. { "udhcpc",
  7. "udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -x hostname:%hostname%]][[ -c %client%]]"
  8. - "[[ -s %script%]][[ %udhcpc_opts%]]",
  9. + "[[ -s %script%]][[ %udhcpc_opts%]] 2>/dev/null",
  10. "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null",
  11. },
  12. };
  13. @@ -576,7 +576,7 @@
  14. return 0;
  15. # endif
  16. return execute("udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid "
  17. - "-i %iface%[[ -x hostname:%hostname%]][[ -c %client%]][[ -s %script%]][[ %udhcpc_opts%]]",
  18. + "-i %iface%[[ -x hostname:%hostname%]][[ -c %client%]][[ -s %script%]][[ %udhcpc_opts%]] 2>/dev/null",
  19. ifd, exec);
  20. }
  21. # else