Create ethernet directory if it's not exist

Test: boot
Bug: 244012069
Change-Id: I2b8f1dd2989ba562755d66be9e6dea9a92834cf3
This commit is contained in:
Milim Lee 2022-08-29 09:54:35 +09:00 • committed by Xiao Ma
commit 5d7cbdddc0

View file

@ -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);
}