2008-02-21 18:03:57 -01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# wrapper.sh - external command wrappers
|
2010-03-04 11:43:04 -01:00
|
|
|
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
|
2008-02-21 18:03:57 -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.
|
|
|
|
|
|
|
|
Apt ()
|
|
|
|
{
|
|
|
|
case "${LH_APT}" in
|
|
|
|
apt|apt-get)
|
2008-10-28 14:44:06 -01:00
|
|
|
Chroot chroot apt-get ${APT_OPTIONS} ${@}
|
2008-02-21 18:03:57 -01:00
|
|
|
;;
|
|
|
|
|
|
|
|
aptitude)
|
2008-10-28 14:44:06 -01:00
|
|
|
Chroot chroot aptitude ${APTITUDE_OPTIONS} ${@}
|
2008-02-21 18:03:57 -01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|