#!/bin/sh #------------------------------------------------------------------------------ # /tmp/install.sh - Setup for # # Copyright (c) 2004 # # Creation: # Last Update: # # 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. #------------------------------------------------------------------------------ package='' service='' startpos=75 killpos=`/usr/bin/expr 100 - $startpos` ### install startup/stop-scripts if [ -x /etc/init.d/$package ] then cd /etc/rc2.d rm -f 'S??'$package ln -s ../init.d/$package 'S'$startpos$package rm -f 'K??'$package ln -s ../init.d/$package 'K'$killpos$package fi ### add menu if [ -f /var/install/bin/setup.services.$package ] then /var/install/bin/add-menu \ /var/install/menu/setup.services.menu \ /var/install/bin/setup.services.$package \ $package_name fi ### add support for advanced configuration file handling (acfh) /var/install/bin/add_advancedconfigmenu -quiet $package /var/install/bin/backup-file -quiet $package ### configuration default or update if [ -f "/etc/config.d/$package" ] then ### update configuration /var/install/bin/$package'-update' update else ### install default configuartion cp -p /etc/default.d/$package /etc/config.d/$package fi ### custom install goes here... /var/install/bin/$package'-edit' exit 0