%PDF- %PDF-
| Direktori : /usr/share/boinc-client/ |
| Current File : //usr/share/boinc-client/udev-cpu_share |
#!/bin/sh
#
# This script gets called by udev, when an entry in
# /sys/kernel/uids gets added.
#
# It is used by boinc-client to assign the lowest
# possible cpu_share of 2 to the boinc user.
#
# ACTION=add
# DEVPATH=/kernel/uids/[uid]
set -e
uid=${DEVPATH##*/}
if [ "$uid" = "$(id -u boinc)" ]; then
echo 2 > /sys/$DEVPATH/cpu_share
fi