diff options
Diffstat (limited to 'kernels/pax-flags-libre/pax-flags-libre.sh')
-rwxr-xr-x | kernels/pax-flags-libre/pax-flags-libre.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernels/pax-flags-libre/pax-flags-libre.sh b/kernels/pax-flags-libre/pax-flags-libre.sh new file mode 100755 index 000000000..612f6cf93 --- /dev/null +++ b/kernels/pax-flags-libre/pax-flags-libre.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +ruby=$(which ruby) + +[ -z $PAX_FLAGS_SUDO ] && sudo='' || sudo='sudo' + +[ "$(paxctl -v $ruby 2>/dev/null)" ] || { + $sudo paxctl -cm $ruby +} + +$sudo systemctl --system daemon-reload + +$sudo linux-pax-flags.rb $@ |