From f5743a7722d7e5d470d3a5a22928d8ee97eadfab Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 16 Jun 2013 15:11:17 +0200 Subject: [PATCH] [scripts] properly set the graphical target --- scripts/remaster_generic_inner_chroot_script_after.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/remaster_generic_inner_chroot_script_after.sh b/scripts/remaster_generic_inner_chroot_script_after.sh index 149d038..8d5edfc 100755 --- a/scripts/remaster_generic_inner_chroot_script_after.sh +++ b/scripts/remaster_generic_inner_chroot_script_after.sh @@ -25,13 +25,17 @@ install_kernel_packages() { } sd_enable() { + local srv="${1}" + local ext=".${2:-service}" [[ -x /usr/bin/systemctl ]] && \ - systemctl --no-reload enable -f "${1}.service" + systemctl --no-reload enable -f "${srv}${ext}" } sd_disable() { + local srv="${1}" + local ext=".${2:-service}" [[ -x /usr/bin/systemctl ]] && \ - systemctl --no-reload disable -f "${1}.service" + systemctl --no-reload disable -f "${srv}${ext}" } basic_environment_setup() { @@ -82,7 +86,7 @@ basic_environment_setup() { groupadd -f games # all these images come with X.Org - sd_enable graphical + sd_enable graphical target } setup_cpufrequtils() {