From d8f6a0cefbdef6c38606fb932e0e216e4cce1350 Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Fri, 23 Mar 2012 13:39:08 +0000 Subject: Hard-code more stuff (rm, mktemp) to busybox. --- tbdiff-update/tbdiff-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tbdiff-update/tbdiff-update b/tbdiff-update/tbdiff-update index 8d25bc0..9a6860e 100755 --- a/tbdiff-update/tbdiff-update +++ b/tbdiff-update/tbdiff-update @@ -41,9 +41,9 @@ if [ ! -f "$patch_file" ]; then fi # mount the root btrfs file system -rootfs="$(mktemp -d)" +rootfs="$(busybox mktemp -d)" mount -t btrfs "$device" "$rootfs" -trap "cd /; umount $rootfs; rm -rf $rootfs" ERR EXIT SIGINT SIGTERM +trap "cd /; umount $rootfs; busybox rm -rf $rootfs" EXIT SIGINT SIGTERM # switch into the root file system cd "$rootfs" -- cgit v1.2.1