summaryrefslogtreecommitdiff
path: root/helpers/lh_local
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-12-22 09:34:38 +0100
committerDaniel Baumann <daniel@debian.org>2007-12-22 09:34:38 +0100
commitf40522b7d8d1e73751e72e10c1ea4208d0033900 (patch)
treedd86c0a907f5d928fb5f0ac7745de00d97400bbe /helpers/lh_local
parent35b5d4a8e4ef1043dcc685ba69892d8693b50ceb (diff)
downloadvyos-live-build-f40522b7d8d1e73751e72e10c1ea4208d0033900.tar.gz
vyos-live-build-f40522b7d8d1e73751e72e10c1ea4208d0033900.zip
Adding lh_local based on the idea from Tzafrir Cohen <tzafrir.cohen@xorcom.com>.
Diffstat (limited to 'helpers/lh_local')
-rwxr-xr-xhelpers/lh_local18
1 files changed, 18 insertions, 0 deletions
diff --git a/helpers/lh_local b/helpers/lh_local
new file mode 100755
index 000000000..17ecaae1b
--- /dev/null
+++ b/helpers/lh_local
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# lh_local(1) - use a local live-helper version
+# Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org>
+#
+# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
+# This is free software, and you are welcome to redistribute it
+# under certain conditions; see COPYING for details.
+
+LH_BASE="${PWD}/live-helper"
+PATH="${LH_BASE}/helpers:${PATH}"
+
+export LH_BASE PATH
+
+if [ ! -z "${1}" ]
+then
+ exec lh "${@}"
+fi