#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/root/.ip_info.sh &
<% if @print_console_login == true -%>
/root/.console_login.sh & 
<% else -%>
/root/.ssh_keygen.sh &
<% end -%>

<% if @hostname == "student" -%>
if ! puppet -V; then
  curl -k https://master.puppetlabs.vm:8140/packages/current/install.bash | sudo bash
fi
<% end -%>

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/root/.ip_info.sh &
<% if @print_console_login == true -%>
/root/.console_login.sh & 
<% else -%>
/root/.ssh_keygen.sh &
<% end -%>

<% if @hostname == "student" -%>
if ! hash puppet 2>/dev/null; then
  curl -k https://master.puppetlabs.vm:8140/packages/current/install.bash | sudo bash
fi
<% end -%>

Correct check if puppet command exists
Correct check if puppet command exists
