Skip to content

Commit

Permalink
ifconfig: check /etc/SUSE-brand to guess type suse
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomaschewski committed Jul 1, 2019
1 parent c0e7699 commit 21ddb19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/read-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ ni_ifconfig_guess_compat_type(const ni_ifconfig_type_t *map,
return ni_ifconfig_find_map(map, "redhat", sizeof("redhat")-1);
#endif
#ifdef COMPAT_AUTO
if (ni_file_exists_fmt("%s%s", (root ? root : ""), "/etc/SuSE-release"))
if (ni_file_exists_fmt("%s%s", (root ? root : ""), "/etc/SuSE-release") ||
ni_file_exists_fmt("%s%s", (root ? root : ""), "/etc/SUSE-brand"))
return ni_ifconfig_find_map(map, "suse", sizeof("suse")-1);

if (ni_file_exists_fmt("%s%s", (root ? root : ""), "/etc/redhat-release"))
Expand Down

0 comments on commit 21ddb19

Please sign in to comment.