#!/bin/bash # get the default kernel version . $base/package/*/linux/kernelversion.sh var_append makeopt " " "-f local.mk KDIR=$root/usr/src/linux-$kernelversion" makeinstopt="$makeopt" hook_add postmake 3 \ '( install -m 644 -p -t $mandir/man5 util/aufs.5 install -m 500 -p util/{{,u}mount.aufs,auplink,aulchown} $root/sbin mkdir -p $root/lib/modules/$kernelversion/misc cp -a fs/aufs/aufs.ko $root/lib/modules/$kernelversion/misc/ )'