pkg://bip_0.5.3-4_mips.deb:79072/postinst
info downloads
#!/bin/sh
set -e
BIPUSER=bip
BIPGROUP=bip
BIPHOME=/var/lib/bip
chgrp "$BIPUSER" "$BIPHOME" 2>/dev/null || addgroup --system "$BIPUSER"
chown "$BIPUSER"."$BIPUSER" "$BIPHOME" 2>/dev/null || \
adduser --system --home "$BIPHOME" --disabled-password \
--ingroup "$BIPGROUP" "$BIPUSER"
if [ ! -e /var/log/bip ]
then
mkdir /var/log/bip
chown bip:bip /var/log/bip
chmod 750 /var/log/bip
fi
if [ -x /usr/sbin/update-rc.d ]
then
/usr/sbin/update-rc.d bip defaults
fi
if [ "$1" = "configure" -a "$2" = "" ]
then
chown root:"$BIPGROUP" /etc/bip.conf
chmod 640 /etc/bip.conf
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/bip" ]; then
update-rc.d bip defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d bip start || exit $?
else
/etc/init.d/bip start || exit $?
fi
fi
# End automatically added section