kylin-nm/debian/kylin-nm.postinst

15 lines
182 B
Plaintext
Raw Permalink Normal View History

2023-04-12 18:42:04 +08:00
#!/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"
exit 0