adding check for /proc/net/vlan/config (==vlan enabled kernel)
authorRalph Hempel <ralph.hempel@lantiq.com>
Tue, 13 May 2008 09:21:17 +0000 (09:21 +0000)
committerRalph Hempel <ralph.hempel@lantiq.com>
Tue, 13 May 2008 09:21:17 +0000 (09:21 +0000)
SVN-Revision: 11132

package/base-files/files/etc/init.d/boot

index 5f5ca99..df2afd6 100755 (executable)
@@ -27,7 +27,7 @@ apply_uci_config() {(
 start() {
        [ -f /proc/mounts ] || /sbin/mount_root
        [ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
-       vconfig set_name_type DEV_PLUS_VID_NO_PAD
+       [ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
 
        apply_uci_config
        config_load system