kylin-nm/debian/kylin-nm.postinst

15 lines
195 B
Bash
Executable File

#!/bin/sh
set -e
PROGRAM=$(dpkg-divert --truename /usr/bin/kylin-network-manager)
if setcap cap_net_raw+ep $PROGRAM; then
chmod u-s $PROGRAM
fi
echo "kylin nm set cap success"
exit 0