Initial import
This commit is contained in:
commit
d117f2543e
6 changed files with 70 additions and 0 deletions
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
pkgbase = mkinitcpio-welcomemessage
|
||||||
|
pkgdesc = mkinitcpio hook to show some message on boot
|
||||||
|
pkgver = 0.0.0
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://aur.archlinux.org/packages/mkinitcpio-welcomemessage/
|
||||||
|
install = usage.install
|
||||||
|
arch = any
|
||||||
|
license = unknown
|
||||||
|
depends = mkinitcpio
|
||||||
|
backup = etc/welcomemessage.conf
|
||||||
|
source = welcomemessage.hook
|
||||||
|
source = welcomemessage.install
|
||||||
|
source = welcomemessage.conf
|
||||||
|
md5sums = 178136ddc22bf41020bb8d002054aea0
|
||||||
|
md5sums = 79d4b4f282151004d6df31ac064e48f8
|
||||||
|
md5sums = 7a08874d14bf2b7945ef638945550b83
|
||||||
|
|
||||||
|
pkgname = mkinitcpio-welcomemessage
|
||||||
|
|
26
PKGBUILD
Normal file
26
PKGBUILD
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Maintainer: Jenya Sovetkin <e.sovetkin@gmail.com>
|
||||||
|
pkgname=mkinitcpio-welcomemessage
|
||||||
|
pkgver=0.0.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="mkinitcpio hook to show some message on boot"
|
||||||
|
arch=(any)
|
||||||
|
license=('unknown')
|
||||||
|
url="https://aur.archlinux.org/packages/mkinitcpio-welcomemessage/"
|
||||||
|
depends=(mkinitcpio)
|
||||||
|
install="usage.install"
|
||||||
|
backup=('etc/welcomemessage.conf')
|
||||||
|
source=('welcomemessage.hook'
|
||||||
|
'welcomemessage.install'
|
||||||
|
'welcomemessage.conf')
|
||||||
|
md5sums=('178136ddc22bf41020bb8d002054aea0'
|
||||||
|
'79d4b4f282151004d6df31ac064e48f8'
|
||||||
|
'7a08874d14bf2b7945ef638945550b83')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm 644 welcomemessage.hook \
|
||||||
|
"${pkgdir}/usr/lib/initcpio/hooks/welcomemessage"
|
||||||
|
install -Dm 644 welcomemessage.install \
|
||||||
|
"${pkgdir}/usr/lib/initcpio/install/welcomemessage"
|
||||||
|
install -Dm 644 welcomemessage.conf \
|
||||||
|
"${pkgdir}/etc/welcomemessage.conf"
|
||||||
|
}
|
9
usage.install
Normal file
9
usage.install
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
post_install() {
|
||||||
|
echo ""
|
||||||
|
echo " This hook will print a welcome message before the encryption password is required."
|
||||||
|
echo ""
|
||||||
|
echo "Put \"filename\" parameters to /etc/welcomemessage.conf, e.g. filename=/etc/issue"
|
||||||
|
echo ""
|
||||||
|
echo "Don't forget to add the welcomemessage hook in your /etc/mkinitcpio.conf and run mkinitcpio -p linux..."
|
||||||
|
echo ""
|
||||||
|
}
|
1
welcomemessage.conf
Normal file
1
welcomemessage.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
filename=/etc/issue
|
4
welcomemessage.hook
Normal file
4
welcomemessage.hook
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
run_hook ()
|
||||||
|
{
|
||||||
|
cat welcomemessage
|
||||||
|
}
|
11
welcomemessage.install
Normal file
11
welcomemessage.install
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
build ()
|
||||||
|
{
|
||||||
|
cat $(cat /etc/welcomemessage.conf | sed -n '/filename=/p' | sed 's/filename=//') > "$BUILDROOT/welcomemessage"
|
||||||
|
add_runscript
|
||||||
|
}
|
||||||
|
help ()
|
||||||
|
{
|
||||||
|
cat<<HELPEOF
|
||||||
|
This hook will print a welcome message before the encryption password is required
|
||||||
|
HELPEOF
|
||||||
|
}
|
Reference in a new issue