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 07:04:32 +0000 (15:04 +0800)
commita44d7bfb6352c7521bd8313ef8d2df3a16deabd7
tree7c7a200ecbcc72fa32499441c327119bb7dcad61
parente02b12c4cf24232ed84ca7f3f31bfcd748973df1
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