File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -186,14 +186,14 @@ hackbase() {
186
186
# install customization file, for reference
187
187
install -Dm644 " ${srcdir} " /customization-full.cfg " ${pkgdir} /usr/share/doc/${pkgbase} /customization.cfg"
188
188
189
- # workaround for missing header with ntsync
190
- if [ -e " ${_kernel_work_folder_abs} /include/uapi/linux/ntsync.h" ]; then
191
- msg2 " Workaround missing ntsync header"
192
- install -Dm644 " ${_kernel_work_folder_abs} " /include/uapi/linux/ntsync.h " ${pkgdir} /usr/include/linux/ntsync.h"
193
- fi
194
-
195
- # load ntsync module at boot
189
+ # ntsync
196
190
if [ -e " ${srcdir} /ntsync.conf" ]; then
191
+ # workaround for missing header with ntsync
192
+ if [ -e " ${_kernel_work_folder_abs} /include/uapi/linux/ntsync.h" ] && [ ! -e " /usr/include/linux/ntsync.h" ]; then
193
+ msg2 " Workaround missing ntsync header"
194
+ install -Dm644 " ${_kernel_work_folder_abs} " /include/uapi/linux/ntsync.h " ${pkgdir} /usr/include/linux/ntsync.h"
195
+ fi
196
+ # load ntsync module at boot
197
197
msg2 " Set the ntsync module to be loaded at boot through /etc/modules-load.d"
198
198
install -Dm644 " ${srcdir} " /ntsync.conf " ${pkgdir} /etc/modules-load.d/ntsync.conf"
199
199
fi
You can’t perform that action at this time.
0 commit comments