#!/bin/sh

# this is used to install packages into a lessdisk terminal's root filesystem.

# copyright 2004 vagrant@freegeek.org, distributed under the terms of the
# GNU General Public License version 2 or any later version.

# call with lessdisks-chroot so that packages which attempt 
# to start servers don't do so while in the chroot.

if [ -r /etc/lessdisks-install.conf ]; then
  . /etc/lessdisks-install.conf
fi

if [ -r /etc/lessdisks/server.config ]; then
  . /etc/lessdissk/server.config
fi

if [ -z "$aptget_binary" ]; then
  aptget_binary="apt-get"
fi

lessdisks-chroot $aptget_binary $@
