dots/src/.local/bin/upkern

21 lines
410 B
Plaintext
Raw Normal View History

2021-10-08 18:26:44 -04:00
#!/bin/sh
# Move kernel configuration files to new kernel
# Takes a single argument, the number of the kernel in eselect
# Sleep in case user wants to cancel
sleep 2
cd /usr/src/linux
# Store config in /usr/src/.config
cp .config ../.config
2021-10-19 21:27:35 -04:00
cp .config /home/dogeystamp/dox/bak/kernelconf
2021-10-08 18:26:44 -04:00
# Switch to new kernel
eselect kernel set $1
cd /usr/src/linux
# Apply new configuration file
cp ../.config .config