Makefile, gitignore and postinst.d-scripts added
This commit is contained in:
parent
1d14791d03
commit
6b5617ab58
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*~
|
||||
test
|
12
Makefile
Normal file
12
Makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
POSTINST_D ?= /etc/kernel/postinst.d
|
||||
SBIN_D ?= /usr/local/sbin
|
||||
|
||||
all:
|
||||
@echo 'Nothing to do :)'
|
||||
|
||||
install:
|
||||
install --mode=0755 --directory $(D)$(POSTINST_D)
|
||||
install --mode=0755 postinst.d/* $(D)$(POSTINST_D)
|
||||
install --mode=0755 --directory $(D)$(SBIN_D)
|
||||
install --mode=0755 linux-update $(D)$(SBIN_D)
|
3
postinst.d/10-nvidia-drivers
Executable file
3
postinst.d/10-nvidia-drivers
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
echo Build NVIDIA module... >&2
|
||||
exec make -C /usr/src/nvidia-drivers SYSSRC="/lib/modules/$1/build" install
|
3
postinst.d/90-dracut
Executable file
3
postinst.d/90-dracut
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
echo "dracut..." >&2
|
||||
exec dracut --force --kver "$1"
|
3
postinst.d/zz-grub-mkconfig
Executable file
3
postinst.d/zz-grub-mkconfig
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
echo "grub-mkconfig..." >&2
|
||||
exec grub-mkconfig -o /boot/grub/grub.cfg
|
Loading…
Reference in a new issue