post_install()
{
	if ! grep -q /usr/bin/fish /etc/shells ; then
		echo /usr/bin/fish >> /etc/shells
	else
		grep -v fish /etc/shells > /tmp/fish$$ &&
		echo /usr/bin/fish >> /tmp/fish$$ &&
		mv /tmp/fish$$ /etc/shells
	fi
}

post_remove()
{
	grep -v fish /etc/shells > /tmp/fish$$ &&
	mv /tmp/fish$$ /etc/shells
}

op=$1
shift

$op $*

# vim: ft=sh
