_install_conf: _generate_servicefiles
${INSTALL_DATA_DIR} $(DESTDIR)$(DBUS_POLICYDIR)
${INSTALL_DATA_DIR} $(DESTDIR)$(DBUS_CONFIGDIR)
- ${INSTALL_DATA_DIR} $(DESTDIR)$(SYSCONFDIR)
${INSTALL_DATA_DIR} $(DESTDIR)$(POLKIT_POLICYDIR)
${INSTALL_DATA} $(POLICYDIR)/*-dbus.conf $(DESTDIR)$(DBUS_POLICYDIR)/
${INSTALL_DATA} $(SERVICEFDIR)/*.service $(DESTDIR)$(DBUS_CONFIGDIR)/
- ${INSTALL_DATA} $(CONFDIR)/systemd_compat.conf $(DESTDIR)$(SYSCONFDIR)/
${INSTALL_DATA} $(POLKITDIR)/*.policy $(DESTDIR)$(POLKIT_POLICYDIR)/
_install_interface_binaries: $(LINKHN)
hostname1_complete_set_pretty_hostname(hn1_passed_interf, invoc);
ret = TRUE;
- if(g_key_file_load_from_file(config, "/etc/systemd_compat.conf", G_KEY_FILE_NONE, NULL)) {
+ if(g_key_file_load_from_file(config, "/etc/machine-info", G_KEY_FILE_NONE, NULL)) {
- g_key_file_set_string(config, "hostnamed", "PrettyHostname", valid_pretty_hostname_buf);
+ g_key_file_set_string(config, "hostnamed", "PRETTY_HOSTNAME", valid_pretty_hostname_buf);
if((computed_static_hostname = g_hostname_to_ascii(PRETTY_HOSTNAME))) {
}
}
- g_key_file_save_to_file(config, "/etc/systemd_compat.conf", NULL);
+ g_key_file_save_to_file(config, "/etc/machine-info", NULL);
g_key_file_unref(config);
return ret;
g_ptr_array_add(hostnamed_freeable, valid_chassis_name_buf);
hostname1_complete_set_chassis(hn1_passed_interf, invoc);
- if(g_key_file_load_from_file(config, "/etc/systemd_compat.conf", G_KEY_FILE_NONE, NULL)) {
+ if(g_key_file_load_from_file(config, "/etc/machine-info", G_KEY_FILE_NONE, NULL)) {
ret = TRUE;
g_key_file_set_string(config, "hostnamed", "ChassisType", valid_chassis_name_buf);
}
}
- g_key_file_save_to_file(config, "/etc/systemd_compat.conf", NULL);
+ g_key_file_save_to_file(config, "/etc/machine-info", NULL);
g_key_file_unref(config);
return ret;
g_ptr_array_add(hostnamed_freeable, valid_icon_name_buf);
hostname1_complete_set_icon_name(hn1_passed_interf, invoc);
- if(g_key_file_load_from_file(config, "/etc/systemd_compat.conf", G_KEY_FILE_NONE, NULL)) {
+ if(g_key_file_load_from_file(config, "/etc/machine-info", G_KEY_FILE_NONE, NULL)) {
ret = TRUE;
g_key_file_set_string(config, "hostnamed", "IconName", valid_icon_name_buf);
}
}
- g_key_file_save_to_file(config, "/etc/systemd_compat.conf", NULL);
+ g_key_file_save_to_file(config, "/etc/machine-info", NULL);
g_key_file_unref(config);
return ret;
strncpy(ret, hostname_buf, hostname_divider); */
/* (3) set PRETTY_HOSTNAME */
- if(g_key_file_load_from_file(config, "/etc/systemd_compat.conf", G_KEY_FILE_NONE, NULL)
- && (pretty_hostname_buf = g_key_file_get_value(config, "hostnamed", "PrettyHostname", NULL)))
+ if(g_key_file_load_from_file(config, "/etc/machine-info", G_KEY_FILE_NONE, NULL)
+ && (pretty_hostname_buf = g_key_file_get_value(config, "hostnamed", "PRETTY_HOSTNAME", NULL)))
PRETTY_HOSTNAME = pretty_hostname_buf;
else
PRETTY_HOSTNAME = "";