ramips: replace backticks by $(...)
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / preinit / 07_set_preinit_iface_ramips
index a395956d04f3164b8ee6df27e390d4150c7551b9..003a4dda7b60ef31abd27a4932913a24c03bafb1 100644 (file)
@@ -4,7 +4,7 @@
 #
 
 ramips_set_preinit_iface() {
-       RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)"`
+       RT3X5X=$(grep -E "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)" /proc/cpuinfo)
 
        if [ -n "${RT3X5X}" ]; then
                # The ethernet switch driver enables VLAN by default, but