#!/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. #---------------------------------------------------------------------------- case "${1}" in start) if [ -f /tmp/automatic-install.lst ] then package_lst=$(/usr/bin/cat /tmp/automatic-install.lst | /usr/bin/sed 's# #|#') for line in ${package_lst} do _package=$(echo "${line}" | /usr/bin/gawk -F'|' '{print $1}') _version=$(echo "${line}" | /usr/bin/gawk -F'|' '{print $2}') if [ -n "${_version}" ] then _version="=${_version}" fi /usr/bin/eisman install --auto --unstable ${_package}${_version} done rm -f /tmp/automatic-install.lst fi ;; esac exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------