mirror of
https://schlomp.space/tastytea/hashboot
synced 2024-11-16 14:37:06 +01:00
hashboot.sh is now hashboot, cause it looks more professional and is nice and shiny and smells like strawberries!
This commit is contained in:
parent
a359a29933
commit
88a07751a9
@ -31,7 +31,10 @@ src_unpack() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
mv initscript.openrc hashboot
|
mkdir bin
|
||||||
|
mkdir init
|
||||||
|
mv hashboot.sh init/hashboot
|
||||||
|
mv initscript.openrc init/hashboot
|
||||||
mv LICENSE HUG-WARE
|
mv LICENSE HUG-WARE
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,6 +44,6 @@ src_install() {
|
|||||||
insinto /usr/portage/licenses
|
insinto /usr/portage/licenses
|
||||||
doins HUG-WARE
|
doins HUG-WARE
|
||||||
|
|
||||||
dobin hashboot.sh
|
dobin bin/hashboot
|
||||||
doinitd hashboot
|
doinitd init/hashboot
|
||||||
}
|
}
|
||||||
|
@ -11,17 +11,17 @@ start()
|
|||||||
{
|
{
|
||||||
ebegin "Checking integrity of files in /boot"
|
ebegin "Checking integrity of files in /boot"
|
||||||
|
|
||||||
# See if hashboot.sh is accessible
|
# See if hashboot is accessible
|
||||||
which hashboot.sh > /dev/null || return 255
|
which hashboot > /dev/null || return 255
|
||||||
|
|
||||||
hashboot.sh check
|
hashboot check
|
||||||
if [ $? -gt 0 ] && [ $? -le 3 ]
|
if [ $? -gt 0 ] && [ $? -le 3 ]
|
||||||
then
|
then
|
||||||
echo -n "Recover files? [y/N] "
|
echo -n "Recover files? [y/N] "
|
||||||
read -r yesno
|
read -r yesno
|
||||||
if [ "${yesno}" == "y" ]
|
if [ "${yesno}" == "y" ]
|
||||||
then
|
then
|
||||||
hashboot.sh recover
|
hashboot recover
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Dropping to shell. Type exit to continue."
|
echo "Dropping to shell. Type exit to continue."
|
||||||
|
@ -11,14 +11,14 @@
|
|||||||
|
|
||||||
#PATH=/sbin:/bin:/usr/bin:/usr
|
#PATH=/sbin:/bin:/usr/bin:/usr
|
||||||
|
|
||||||
# See if hashboot.sh is accessible
|
# See if hashboot is accessible
|
||||||
test -x $(which hashboot.sh) || exit 255
|
test -x $(which hashboot) || exit 255
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
log_daemon_msg "Checking integrity of files in /boot"
|
log_daemon_msg "Checking integrity of files in /boot"
|
||||||
|
|
||||||
hashboot.sh check
|
hashboot check
|
||||||
if [ $? -gt 0 ] && [ $? -le 3 ]
|
if [ $? -gt 0 ] && [ $? -le 3 ]
|
||||||
then
|
then
|
||||||
log_end_msg 4
|
log_end_msg 4
|
||||||
@ -27,7 +27,7 @@ case "$1" in
|
|||||||
read -r yesno
|
read -r yesno
|
||||||
if [ "${yesno}" == "y" ]
|
if [ "${yesno}" == "y" ]
|
||||||
then
|
then
|
||||||
hashboot.sh recover
|
hashboot recover
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Dropping to shell. Type exit to continue."
|
echo "Dropping to shell. Type exit to continue."
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Generate checksums of MBR and /boot after each kernel update
|
# Generate checksums of MBR and /boot after each kernel update
|
||||||
|
|
||||||
hashboot.sh index
|
hashboot index
|
||||||
|
Loading…
Reference in New Issue
Block a user