#!/bin/bash # because I use CONFIG_LOCALVERSION_AUTO, not the same version again and # again, /boot and /lib/modules/ eventually fill up. # Dumb script to purge that stuff: for f in "$@" do if rpm -qf "/lib/modules/$f" >/dev/null; then echo "keeping $f (installed from rpm)" elif [ $(uname -r) = "$f" ]; then echo "keeping $f (running kernel) " else echo "removing $f" rm -f "/boot/initramfs-$f.img" "/boot/System.map-$f" rm -f "/boot/vmlinuz-$f" "/boot/config-$f" rm -rf "/lib/modules/$f" new-kernel-pkg --remove $f fi done ng' alt='cgit logo'/> index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Babrou <ivan@cloudflare.com>2016-04-23 12:58:03 +0000
committerDavid S. Miller <davem@davemloft.net>2016-04-26 01:11:55 -0400
commit9f5db53507b6607dc1b5d59547097966c0e71047 (patch)
tree3256d0ccbe9eb80ba31b8f977f1badc803a5e854
parent3d6d30d60abb19ba9a20e53ce65b18a9c148fcd1 (diff)
net: dummy: remove note about being Y by default
Signed-off-by: Ivan Babrou <ivan@cloudflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat