#!/bin/sh
# 
# In its default init script, the welcome2l is called with the `-xmasauto' 
# option. This script runs the init script and update /etc/issue daily 
# to make sure that we don't miss Xmas :)
# 
# Please read /usr/share/doc/welcome2l/INSTALL.gz for details.
# 

test -x /usr/bin/welcome2l || exit 0

set +e
rnl=`/sbin/runlevel`  # This may fail if /var/run/utmp doesn't exist
set -e

# Run the init script only when welcome2l is enabled in the current runlevel
case "X${rnl}X" in
	X[N0-6]\ [1-5]X)
		file="/etc/rc${rnl#??}.d/S20welcome2l"
		;;
	*)
		file="/etc/init.d/welcome2l"
		;;
esac

test -x "$file" && "$file" restart > /dev/null

exit 0

