Skip to content

Commit 9b4bbcb

Browse files
authored
Fix dhcp.sh script static network file check: (#294)
## Description Updated the location of the static network interfaces file check. Fixes: # ## How Has This Been Tested? ## How are existing users impacted? What migration steps/scripts do we need? ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
2 parents 9e2ae90 + e3fc64a commit 9b4bbcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/dhcp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ run_dhcp_client() {
3030

3131
}
3232

33-
if [ -f /run/network/interfaces ]; then
34-
echo "the /run/network/interfaces file exists, so static IP's are in use. we will not be running the dhcp client."
33+
if [ -f /run/network/interfaces ] || [ -f /var/run/network/interfaces ]; then
34+
echo "the /run/network/interfaces file or /var/run/network/interfaces file exists, so static IP's are in use. not running the dhcp client."
3535
exit 0
3636
fi
3737

0 commit comments

Comments
 (0)