echo "Using snippet $pkgs_snippet"
$SNIPPET($pkgs_snippet)
+#set $remove_uek_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.270.remove-uek.sh"
+echo
+echo "Using snippet $remove_uek_snippet"
+$SNIPPET($remove_uek_snippet)
+
#set $create_motd_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.300.create-motd.sh"
echo
echo "Using snippet $create_motd_snippet"
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+remove_uek_packages() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling remove_uek_packages() ..."
+ echo
+ log "Switch kernel in /etc/sysconfig/kernel ..."
+
+ sed -i -e 's/^\(DEFAULTKERNEL=\).*/\1kernel/i' /etc/sysconfig/kernel
+
+ echo
+ log "Removing UEK packages ..."
+
+ yum remove -y *-uek-*
+
+}
+
+remove_uek_packages
+
+#end raw
+## vim: ts=4 et list