aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-distro/recipes-devtools/dpkg/files/dpkg-configure-pending
blob: ba3bf0259c9c54cea043d675a8535fde28ee5f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

[ -e /etc/default/postinst ] && . /etc/default/postinst
if [ "$POSTINST_LOGGING" = "1" ]; then
    append_log="| tee -a $LOGFILE"
fi

[ "$POSTINST_LOGGING" = "1" ] && eval echo "Attempting to reconfigure packages on first boot that had failed postinsts..." ${append_log}

dpkg --configure --pending | tee -a $LOGFILE

if [ -n "`which update-rc.d`" ]; then
    update-rc.d -f dpkg-configure-pending remove | tee -a $LOGFILE
fi