Create ethernet directory if it's not exist
Test: boot Bug: 244012069 Change-Id: I2b8f1dd2989ba562755d66be9e6dea9a92834cf3
This commit is contained in:
parent
2d6264f679
commit
5d7cbdddc0
1 changed files with 4 additions and 0 deletions
|
|
@ -116,6 +116,10 @@ public class EthernetConfigStore {
|
|||
}
|
||||
|
||||
public void write(String iface, IpConfiguration config) {
|
||||
final File directory = new File(APEX_IP_CONFIG_FILE_PATH);
|
||||
if (!directory.exists()) {
|
||||
directory.mkdirs();
|
||||
}
|
||||
write(iface, config, APEX_IP_CONFIG_FILE_PATH + CONFIG_FILE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue