From 97a6b58a85df321ee2626e69c6fa3bb2f39a7a3e Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 29 May 2016 22:53:22 +0000 Subject: Make @shell rootdir friendly to allow cross installation --- Keywords/shell.ucl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Keywords') diff --git a/Keywords/shell.ucl b/Keywords/shell.ucl index 7c3ae7f1678a..f4e3c30f1381 100644 --- a/Keywords/shell.ucl +++ b/Keywords/shell.ucl @@ -17,16 +17,16 @@ post-install: < /etc/shells - rm -f /etc/shells.bak + cp ${PKG_ROOTDIR}/etc/shells ${PKG_ROOTDIR}/etc/shells.bak + (grep -v "^${file}$" ${PKG_ROOTDIR}/etc/shells.bak; echo ${file}) > ${PKG_ROOTDIR}/etc/shells + rm -f ${PKG_ROOTDIR}/etc/shells.bak EOD pre-deinstall: < /etc/shells - rm -f /etc/shells.bak + cp ${PKG_ROOTDIR}/etc/shells ${PKG_ROOTDIR}/etc/shells.bak + grep -v "^${file}$" ${PKG_ROOTDIR}/etc/shells.bak > ${PKG_ROOTDIR}/etc/shells + rm -f ${PKG_ROOTDIR}/etc/shells.bak EOD -- cgit v1.2.3