summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-03 20:11:52 -0400
committerDave Reisner <dreisner@archlinux.org>2012-11-03 20:11:52 -0400
commit075ff6863d39c8c2846b53e31707605545b1f17e (patch)
treee9ccbb5eeb65d94b17ddb1bceb986e0f4cd865cc /src/core
parent53d05b44f17db67d644069600e4b5bbca88d21e7 (diff)
drop Arch Linux support for reading /etc/rc.conf
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hostname-setup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hostname-setup.c b/src/core/hostname-setup.c
index fd111a65a4..dbd2227e21 100644
--- a/src/core/hostname-setup.c
+++ b/src/core/hostname-setup.c
@@ -34,8 +34,6 @@
#define FILENAME "/etc/sysconfig/network"
#elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE)
#define FILENAME "/etc/HOSTNAME"
-#elif defined(TARGET_ARCH)
-#define FILENAME "/etc/rc.conf"
#elif defined(TARGET_GENTOO)
#define FILENAME "/etc/conf.d/hostname"
#endif
@@ -65,7 +63,7 @@ static int read_and_strip_hostname(const char *path, char **hn) {
static int read_distro_hostname(char **hn) {
-#if defined(TARGET_ARCH) || defined(TARGET_GENTOO) || defined(TARGET_ALTLINUX) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA)
+#if defined(TARGET_GENTOO) || defined(TARGET_ALTLINUX) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA)
int r;
_cleanup_fclose_ FILE *f = NULL;