summaryrefslogtreecommitdiffstats
path: root/usr/sbin/pc-sysinstall/backend/functions-runcommands.sh
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-17 23:38:27 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-17 23:38:27 -0500
commit9b8707c320efb46379ff9d25d9859d81d6410061 (patch)
tree444bc503a3e62ac665a61603bb80939d6ab55449 /usr/sbin/pc-sysinstall/backend/functions-runcommands.sh
parent65c6cdfa85263d3ed39117577054d3fede9753df (diff)
downloadpfsense-9b8707c320efb46379ff9d25d9859d81d6410061.zip
pfsense-9b8707c320efb46379ff9d25d9859d81d6410061.tar.gz
Catch up to recent FreeBSD-9-CURRENT changes
Diffstat (limited to 'usr/sbin/pc-sysinstall/backend/functions-runcommands.sh')
-rwxr-xr-xusr/sbin/pc-sysinstall/backend/functions-runcommands.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/sbin/pc-sysinstall/backend/functions-runcommands.sh b/usr/sbin/pc-sysinstall/backend/functions-runcommands.sh
index daa8e6d..29e3606 100755
--- a/usr/sbin/pc-sysinstall/backend/functions-runcommands.sh
+++ b/usr/sbin/pc-sysinstall/backend/functions-runcommands.sh
@@ -23,7 +23,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $FreeBSD: src/usr.sbin/pc-sysinstall/backend/functions-runcommands.sh,v 1.2 2010/06/27 16:46:11 imp Exp $
+# $FreeBSD: src/usr.sbin/pc-sysinstall/backend/functions-runcommands.sh,v 1.3 2010/08/19 05:59:27 imp Exp $
# Functions which runs commands on the system
@@ -37,7 +37,10 @@ run_chroot_cmd()
echo "$CMD" >${FSMNT}/.runcmd.sh
chmod 755 ${FSMNT}/.runcmd.sh
chroot ${FSMNT} sh /.runcmd.sh
+ RES=$?
+
rm ${FSMNT}/.runcmd.sh
+ return ${RES}
};
run_chroot_script()
@@ -50,8 +53,10 @@ run_chroot_script()
echo_log "Running chroot script: ${SCRIPT}"
chroot ${FSMNT} /.${SBASE}
+ RES=$?
rm ${FSMNT}/.${SBASE}
+ return ${RES}
};
@@ -64,7 +69,10 @@ run_ext_cmd()
echo "${CMD}"> ${TMPDIR}/.runcmd.sh
chmod 755 ${TMPDIR}/.runcmd.sh
sh ${TMPDIR}/.runcmd.sh
+ RES=$?
+
rm ${TMPDIR}/.runcmd.sh
+ return ${RES}
};
OpenPOWER on IntegriCloud