echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.packages"
}
+rhel_get_services ()
+{
+ echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.services"
+}
+
rhel_post_config_hook ()
{
if [ "$ISO" = "@uto" ] ; then
if [ "$RHEL_PACKAGES" = "@uto" ] ; then
RHEL_PACKAGES=$(rhel_get_packages) || exit $?
fi
+
+ if [ "$RHEL_SERVICES" = "@uto" ] ; then
+ RHEL_SERVICES=$(rhel_get_services) || exit $?
+ fi
}
register_hook post_config_hooks rhel_post_config_hook
defconf RHEL_PACKAGES "@uto"
+defconf RHEL_SERVICES "@uto"
+
defconf ISO_DIR "/virtual/ISO" \
"<dir>" "directory for ISO images, prepended to $ISO if not absolute"
--- /dev/null
+echo "Turn off some services..."
+chkconfig atd off
+chkconfig avahi-daemon off
+chkconfig avahi-dnsconfd off
+chkconfig bluetooth off
+chkconfig cpuspeed off
+chkconfig cups off
+chkconfig dhcdbd off
+chkconfig dund off
+chkconfig firstboot off
+chkconfig haldaemon off
+chkconfig hidd off
+chkconfig ip6tables off
+chkconfig ipmi off
+chkconfig iptables off
+chkconfig irda off
+chkconfig kudzu off
+chkconfig nfslock off
+chkconfig nscd off
+chkconfig pand off
+chkconfig pcscd off
+chkconfig restorecond off
+chkconfig rhnsd off
+chkconfig sendmail off
+chkconfig setroubleshoot off
+chkconfig smartd off
+chkconfig xfs off
+chkconfig yum-updatesd off
+chkconfig gpm off
+
+echo "Turn on some services..."
+chkconfig multipathd on
--- /dev/null
+echo "Turn off some services..."
+chkconfig atd off
+chkconfig avahi-daemon off
+chkconfig avahi-dnsconfd off
+chkconfig bluetooth off
+chkconfig cpuspeed off
+chkconfig cups off
+chkconfig dhcdbd off
+chkconfig dund off
+chkconfig firstboot off
+chkconfig haldaemon off
+chkconfig hidd off
+chkconfig ip6tables off
+chkconfig ipmi off
+chkconfig iptables off
+chkconfig irda off
+chkconfig kudzu off
+chkconfig nfslock off
+chkconfig nscd off
+chkconfig pand off
+chkconfig pcscd off
+chkconfig restorecond off
+chkconfig rhnsd off
+chkconfig sendmail off
+chkconfig setroubleshoot off
+chkconfig smartd off
+chkconfig xfs off
+chkconfig yum-updatesd off
+chkconfig gpm off
+
+echo "Turn on some services..."
+chkconfig multipathd on
(
set -x
-echo "Turn off some services..."
-chkconfig atd off
-chkconfig avahi-daemon off
-chkconfig avahi-dnsconfd off
-chkconfig bluetooth off
-chkconfig cpuspeed off
-chkconfig cups off
-chkconfig dhcdbd off
-chkconfig dund off
-chkconfig firstboot off
-chkconfig haldaemon off
-chkconfig hidd off
-chkconfig ip6tables off
-chkconfig ipmi off
-chkconfig iptables off
-chkconfig irda off
-chkconfig kudzu off
-chkconfig nfslock off
-chkconfig nscd off
-chkconfig pand off
-chkconfig pcscd off
-chkconfig restorecond off
-chkconfig rhnsd off
-chkconfig sendmail off
-chkconfig setroubleshoot off
-chkconfig smartd off
-chkconfig xfs off
-chkconfig yum-updatesd off
-chkconfig gpm off
-
-echo "Turn on some services..."
-chkconfig multipathd on
+@@@RHEL_SERVICES@@@
for i in @@EXTRA_CHKCONFIGS@@ ; do
chkconfig ${i%:*} ${i#*:}