Initial commit. 'preparekern' script from home server, README.md, LICENSE.
This commit is contained in:
parent
eb4a1db0d4
commit
b16ab03556
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
Copyright (c) 2022 Alexey Skobkin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
|
15
README.md
15
README.md
|
@ -1,3 +1,16 @@
|
|||
# local-bin
|
||||
|
||||
Set of scripts for somewhat frequent use.
|
||||
Set of scripts to drop to `/usr/local/bin` or `~/.local/bin`.
|
||||
|
||||
## Installation
|
||||
|
||||
```shell
|
||||
# Copy
|
||||
sudo cp src/* /usr/local/bin/
|
||||
|
||||
# Restrict changing by the user owning a repo
|
||||
chown root:root /usr/local/bin/*
|
||||
|
||||
# (optional, if needed) Making sure scripts are executable
|
||||
chmod +x /usr/local/bin/*
|
||||
```
|
||||
|
|
14
bin/preparekern-server
Executable file
14
bin/preparekern-server
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env sh
|
||||
mount /esp
|
||||
cd /usr/src/linux
|
||||
rm .version
|
||||
[[ ! -f .config ]] && zcat /proc/config.gz > .config
|
||||
make oldconfig &&
|
||||
#make nconfig &&
|
||||
make -j20 bzImage modules &&
|
||||
make modules_install &&
|
||||
(
|
||||
cd /esp/EFI/gentoo
|
||||
mv -f bootx64.efi bootx64.old.efi &>/dev/null;
|
||||
cp /usr/src/linux/arch/x86/boot/bzImage bootx64.efi
|
||||
)
|
Loading…
Reference in a new issue