mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2026-03-21 08:27:58 +01:00
ensure ntsync is modprobed if possible
This commit is contained in:
parent
332dc3c4d5
commit
e570d8ca1e
1
etc/modules-load.d/60-ntsync.conf
Normal file
1
etc/modules-load.d/60-ntsync.conf
Normal file
@ -0,0 +1 @@
|
||||
ntsync
|
||||
10
install
10
install
@ -225,6 +225,16 @@ if [ "$(id -u)" == "0" ]; then
|
||||
chmod -v a+r /etc/sysctl.d/*.conf
|
||||
(sysctl -p --system &)
|
||||
|
||||
# We are doing kernel module configuration now? SECURITY WARNING!!!!1
|
||||
if [ -d /etc/modules-load.d/ ]; then
|
||||
if [[ ! -f /dev/ntsync && -f /lib/modules/$(uname -r)/kernel/drivers/misc/ntsync.ko.xz ]]; then
|
||||
modprobe ntsync
|
||||
if [ ! -f /etc/modules-load.d/60-ntsync.conf ]; then
|
||||
cp etc/modules-load.d/60-ntsync.conf /etc/modules-load.d/
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# udev configuration. SECURITY WARNING
|
||||
mkdir -vp /etc/udev/rules.d/
|
||||
ln -nsfv $HOME/.shell-things/submodules/steam-devices/*.rules /etc/udev/rules.d/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user