mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
12 lines
236 B
Plaintext
12 lines
236 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
case $(uname -m) in
|
||
|
i?86|x86_64)
|
||
|
if ! grep -q crashkernel /boot/grub/grub.cfg; then
|
||
|
mount /boot -o remount,rw
|
||
|
sed -i 's/linux.*/& crashkernel=32M@32M/' /boot/grub/grub.cfg
|
||
|
mount /boot -o remount,ro
|
||
|
fi
|
||
|
;;
|
||
|
esac
|