mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 10:33:41 +08:00
hostname-setup: Frugalware switched to /etc/hostname
This commit is contained in:
parent
53273a6aef
commit
b5dc29c079
@ -32,7 +32,7 @@
|
||||
|
||||
#if defined(TARGET_FEDORA) || defined(TARGET_ALTLINUX) || defined(TARGET_MANDRIVA) || defined(TARGET_MEEGO)
|
||||
#define FILENAME "/etc/sysconfig/network"
|
||||
#elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE) || defined(TARGET_FRUGALWARE)
|
||||
#elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE)
|
||||
#define FILENAME "/etc/HOSTNAME"
|
||||
#elif defined(TARGET_ARCH)
|
||||
#define FILENAME "/etc/rc.conf"
|
||||
@ -114,7 +114,7 @@ finish:
|
||||
fclose(f);
|
||||
return r;
|
||||
|
||||
#elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE) || defined(TARGET_FRUGALWARE)
|
||||
#elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE)
|
||||
return read_and_strip_hostname(FILENAME, hn);
|
||||
#else
|
||||
return -ENOENT;
|
||||
|
Loading…
Reference in New Issue
Block a user