post_install() { if [ "$(getent group netdev | cut -d ":" -f 3)" != "86" ]; then groupadd -fg 86 netdev fi systemctl enable NetworkManager } post_upgrade() { systemctl restart NetworkManager post_install } pre_remove() { systemctl stop NetworkManager systemctl disable NetworkManager } post_remove() { groupdel netdev 2>/dev/null || true }