[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
howtos:slackware_admin:building_the_linux_kernel_using_git_repository [2014/02/15 20:03 (UTC)] – Updated installkernel script metaschima | howtos:slackware_admin:building_the_linux_kernel_using_git_repository [2014/02/15 20:08 (UTC)] – updated installkernel script metaschima | ||
---|---|---|---|
Line 462: | Line 462: | ||
#!/bin/sh | #!/bin/sh | ||
# installs kernel only, this should be run only from the kernel source directory | # installs kernel only, this should be run only from the kernel source directory | ||
+ | |||
+ | error() # error | ||
+ | { | ||
+ | echo " | ||
+ | exit 1 | ||
+ | } | ||
# make sure we are root | # make sure we are root | ||
if test ~ != '/ | if test ~ != '/ | ||
then | then | ||
- | echo 'ERROR: | + | error 'This script must be run as root' |
- | exit 1 | + | |
fi | fi | ||
Line 501: | Line 506: | ||
echo ' | echo ' | ||
else | else | ||
- | echo ' | + | error ' |
- | exit 1 | + | |
fi | fi | ||
if cmp System.map / | if cmp System.map / | ||
Line 508: | Line 512: | ||
echo ' | echo ' | ||
else | else | ||
- | echo ' | + | error ' |
- | exit 1 | + | |
fi | fi | ||
if cmp .config / | if cmp .config / | ||
Line 515: | Line 518: | ||
echo ' | echo ' | ||
else | else | ||
- | echo ' | + | error ' |
- | exit 1 | + | |
fi | fi | ||
if test -d " | if test -d " | ||
Line 524: | Line 526: | ||
echo ' | echo ' | ||
else | else | ||
- | echo ' | + | error ' |
- | exit 1 | + | |
fi | fi | ||
fi | fi | ||
Line 534: | Line 535: | ||
exit 0 | exit 0 | ||
- | |||
</ | </ | ||
==== lilo ==== | ==== lilo ==== |