kylin-nm/debian/kylin-nm.postinst

15 lines
182 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
PROGRAM=$(dpkg-divert --truename /usr/bin/kylin-nm)
if setcap cap_net_raw+ep $PROGRAM; then
chmod u-s $PROGRAM
fi
echo "kylin nm set cap success"
2021-09-24 16:07:24 +08:00
exit 0