|
|
|
@ -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
|
|
|
|
|