swconfig: supress error on non dtb machines.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 11 Feb 2015 07:07:49 +0000 (08:07 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 11 Feb 2015 07:07:49 +0000 (08:07 +0100)
src/initscripts/init.d/swconfig

index be4604da9d30f092826d657675283e167c6067ab..0ee4260bd02fcd9048715353413d76e20c5d632b 100644 (file)
@@ -25,7 +25,7 @@ fi
 
 case "${1}" in
        start)
-               case `cat /proc/device-tree/model` in
+               case `cat /proc/device-tree/model 2>/dev/null` in
                        "Lamobo-R1")
                                #
                                # Lamobo R1 aka BPi R1 Routerboard