2008-01-18 07:52:04 -01:00
|
|
|
#!/bin/sh
|
2007-11-11 12:45:34 -01:00
|
|
|
|
2009-01-30 19:24:01 -01:00
|
|
|
# lh(1) - generic live-helper wrapper
|
2009-01-26 15:39:27 -01:00
|
|
|
# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org>
|
2007-11-11 12:45:34 -01:00
|
|
|
#
|
2009-01-30 19:24:01 -01:00
|
|
|
# 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.
|
2007-11-11 12:45:34 -01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Including common functions
|
2009-11-22 12:40:20 -01:00
|
|
|
. "${LH_BASE:-/usr/share/live-helper}"/live-helper.sh
|
2007-11-11 12:45:34 -01:00
|
|
|
|
|
|
|
# Setting static variables
|
2009-01-15 01:37:42 -01:00
|
|
|
DESCRIPTION="$(Echo 'utility to build Debian Live systems')"
|
2007-11-11 12:45:34 -01:00
|
|
|
HELP="FIXME"
|
|
|
|
USAGE="FIXME"
|
|
|
|
|
|
|
|
case "${1}" in
|
|
|
|
-h|--help)
|
2009-01-30 16:16:59 -01:00
|
|
|
Man
|
2007-11-11 12:45:34 -01:00
|
|
|
;;
|
|
|
|
|
2009-06-15 11:37:33 +00:00
|
|
|
""|-u|--usage)
|
2007-11-11 12:45:34 -01:00
|
|
|
Usage
|
|
|
|
;;
|
|
|
|
|
|
|
|
-v|--version)
|
|
|
|
Version
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
2008-11-02 09:29:09 -01:00
|
|
|
COMMAND="${1}"
|
|
|
|
shift
|
|
|
|
|
2010-02-01 10:36:00 -01:00
|
|
|
if [ -x "${LH_BASE}/helpers/lh_${COMMAND}" ]
|
|
|
|
then
|
|
|
|
LH=1 exec "${LH_BASE}/helpers/lh_${COMMAND}" "${@}"
|
|
|
|
elif [ -x /usr/share/live-helper/helpers/lh_${COMMAND} ]
|
2009-11-22 12:40:20 -01:00
|
|
|
then
|
|
|
|
LH=1 exec /usr/share/live-helper/helpers/lh_"${COMMAND}" "${@}"
|
|
|
|
elif [ -x "$(which lh_${COMMAND} 2>/dev/null)" ]
|
2007-11-11 12:45:34 -01:00
|
|
|
then
|
2009-10-20 18:40:09 +00:00
|
|
|
LH=1 exec lh_"${COMMAND}" "${@}"
|
2007-11-11 12:45:34 -01:00
|
|
|
else
|
|
|
|
Echo_error "no such helper"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|