#!/bin/sh
grep fish ${IPKG_INSTROOT}/etc/shells || echo "/usr/bin/fish" >> ${IPKG_INSTROOT}/etc/shells

# Backwards compatibility
if [ -e /bin/fish ] && { [ ! -L /bin/fish ] || [ "" != "..//usr/bin/fish" ]; }; then
    ln -fs "..//usr/bin/fish" "${IPKG_INSTROOT}/bin/fish"
fi
