#! /bin/sh #---------------------------------------------------------------------------- # /etc/init.d/automatic-install - package auto install # # Creation : 2001-08-08 fm # Last Update: $Id$ # # Copyright (c) 2001-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # usage: /tmp/automatic-install.lst # $package version (version optional) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- #!/bin/sh case "$1" in start) if [ -f /tmp/automatic-install.lst ] then package_lst=$(cat /tmp/automatic-install.lst | sed 's# #|#') for line in ${package_lst} do _package=$(echo "${line}" | awk -F'|' '{print $1}') _version=$(echo "${line}" | awk -F'|' '{print $2}') /var/install/bin/install-package -y -p ${_package} ${_version} echo "Press RETURN to continue" read dummy done rm -f /tmp/automatic-install.lst fi ;; esac exit 0