Proper packages co-install for BSP

This commit is contained in:
Igor Pecovnik 2016-01-21 23:09:53 +01:00
parent f3b04eb927
commit 3c0cdf1d89

View File

@ -42,6 +42,7 @@ create_board_package (){
echo "Installed-Size: 1" >> $controlfile
echo "Section: kernel" >> $controlfile
echo "Priority: optional" >> $controlfile
echo "Recommends: fake-hwclock" >> $controlfile
echo "Description: Root file system tweaks for $BOARD" >> $controlfile
# set up post install script
@ -63,8 +64,7 @@ create_board_package (){
echo "[[ -f /root/.nand1-allwinner.tgz ]] && rm /root/.nand1-allwinner.tgz" >> $destination/DEBIAN/postinst
echo "[[ -f /root/nand-sata-install ]] && rm /root/nand-sata-install" >> $destination/DEBIAN/postinst
echo "ln -sf /var/run/motd /etc/motd" >> $destination/DEBIAN/postinst
echo "[[ -f /etc/bash.bashrc.custom ]] && rm /etc/bash.bashrc.custom" >> $destination/DEBIAN/postinst
echo "apt-get install -qq -y fake-hwclock" >> $destination/DEBIAN/postinst
echo "[[ -f /etc/bash.bashrc.custom ]] && rm /etc/bash.bashrc.custom" >> $destination/DEBIAN/postinst
echo "exit 0" >> $destination/DEBIAN/postinst
# temper binary for USB temp meter