Добавлено восстановление file capabilities по файлу описанию

master-3.5 3.5.8.6
parent b7f58754c2
commit 64cb021046

@ -134,12 +134,24 @@ setup_alsautils() {
fi
}
restore_filecaps() {
if [[ -f /var/lib/calculate/filecaps ]] && type filecap &>/dev/null
then
while read line;
do
filecap $line
done </var/lib/calculate/filecaps
fi
rm -f /var/lib/calculate/filecaps
}
start() {
if rc-config list boot | grep -q -e "calculate " -e "calculate$"
then
local roottype=`variable_value main.os_root_type`
local subsystem=`variable_value main.os_subsystem`
local rootflash=`variable_value main.os_root_flash_dev`
[[ $subsystem == "lxc" ]] && restore_filecaps
if [[ $roottype != "livecd" ]] || grep "video:nvidia" /proc/cmdline &>/dev/null
then
install_video_driver

Loading…
Cancel
Save