base-files: preinit: also config switch when no port roles defined
authorChuanhong Guo <gch981213@gmail.com>
Fri, 10 Apr 2020 04:07:25 +0000 (12:07 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sun, 12 Apr 2020 14:29:02 +0000 (22:29 +0800)
commitf017f617aecbd47debd4d3a734dc0e471342db96
tree477423d6839f059542c626636f9c4b121d5ef367
parent605a7ffff2995f09a222489a143fcdb94540b3d6
base-files: preinit: also config switch when no port roles defined

current preinit code in base-files doesn't config switch when there are
no port roles defined. But this kind of configuration exists on single
port devices where switch vlan is simply disabled.
configure reset and enable_vlan property when a switch node exist.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
package/base-files/Makefile
package/base-files/files/lib/preinit/10_indicate_preinit