Makefile, gitignore and postinst.d-scripts added

master
Denis Knauf 2012-11-22 12:22:57 +01:00
parent 1d14791d03
commit 6b5617ab58
5 changed files with 23 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*~
test

12
Makefile Normal file
View 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
View 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
View 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
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
echo "grub-mkconfig..." >&2
exec grub-mkconfig -o /boot/grub/grub.cfg