Fixed patches, cleaned up Makefile, added dependencies

This commit is contained in:
2016-11-02 23:34:05 -05:00
parent 653de8f1c6
commit 3628b9971f
5 changed files with 49 additions and 25 deletions

View File

@@ -9,18 +9,22 @@ case $1 in
postinst)
if [[ ${TARGET} ]]; then
if [ ! -f ${TARGET}/etc/shadow ]; then
echo "Converting /etc/passwd to shadow for ${TARGET}"
chroot ${TARGET} pwconv
fi
if [ ! -f ${TARGET}/etc/gshadow ]; then
echo "Converting /etc/group to gshadow for ${TARGET}"
chroot ${TARGET} grpconv
fi
else
if [ ! -f /etc/shadow ]; then
echo "Converting /etc/passwd to shadow"
pwconv
fi
if [ ! -f /etc/gshadow ]; then
echo "Converting /etc/group to gshadow for ${TARGET}"
grpconv
fi
fi