#!/bin/sh

# update color_prompt.sh symlink (if exists) after we renamed color_prompt to
# color_prompt.sh.disabled.
case "$(readlink etc/profile.d/color_prompt.sh 2>/dev/null || true)" in
	color_prompt) ln -sf color_prompt.sh.disabled etc/profile.d/color_prompt.sh;;
esac

# the /etc/group file is created after /etc/shadow. Needed to apply the group
# properly.
chown root:shadow etc/shadow
[ -e etc/shadow- ] && chown root:shadow etc/shadow-

exit 0
