]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ip-up: Fixes bug12763
authorAdolf Belka <adolf.belka@ipfire.org>
Thu, 11 Apr 2024 15:01:03 +0000 (17:01 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 19 Apr 2024 18:40:27 +0000 (18:40 +0000)
- This ensures that all ip route and ip rule commands are redirected to null if the output
   is not used to feed into a variable.
- This will prevent any error messages related to empty iproute tables being displayed
   during boot if an empty table is accessed.

Fixes: Bug#12763
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/ppp/ip-up

index 2e636e72d934d3c98bbdd9468f5a38f770f61af2..5f4ee77265fbd444cfc0dd42124383cee2bc1979 100644 (file)
@@ -33,7 +33,7 @@ echo -n "$4" > /var/ipfire/red/local-ipaddress
 echo -n "$5" > /var/ipfire/red/remote-ipaddress
 touch /var/ipfire/red/active
 
-/sbin/ip route replace default via ${IPREMOTE} dev ppp0
+/sbin/ip route replace default via ${IPREMOTE} dev ppp0 >/dev/null 2>&1
 run_subdir ${rc_base}/init.d/networking/red.up/
 
 #Check if gateway has answerd to ping, if not replace with ping.ipfire.org