build: fix possible issue with kmod package having multiple AutoLoad's
authorYousong Zhou <yszhou4tech@gmail.com>
Sat, 27 May 2017 02:22:02 +0000 (10:22 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Sat, 27 May 2017 03:21:55 +0000 (11:21 +0800)
commit546e20e8361e02e0094cc08eebc51c5c5a895682
treedafe45c8768a74b2efa4066fb6da1fa4b1e2e892
parent7142cb45b4134b21b2e88cf7b22f4d306314cc36
build: fix possible issue with kmod package having multiple AutoLoad's

This commit contains the following changes

 - Use local shell var where appliable
 - The $(sort $$$$$$$$mods) call will have no expected effect
 - Avoid EEXIST when creating symlinks in /etc/modules-boot.d/
 - Avoid duplicate arguments for insert_modules() in postinst-pkg

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
include/kernel.mk