#!/bin/bash

# PLEASE AVOID USING DEBIAN-HOOKS!
# For more info please contact HOSTMAN team.

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

case "$1" in
    abort-upgrade|abort-remove|configure|abort-deconfigure)
        cat > /etc/iproute2/group << EOF
# device group names, managed by yandex-netconfig package
0 default
1 backbone
2 fastbone
EOF
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

exit 0
