From: <bl...@us...> - 2003-10-30 21:48:15
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv28550/build/scripts Added Files: ipcalc Log Message: Added ipcalc. ipcalc is a cool little program that comes with Redhat that calculates IP related values (netmask, broadcast, etc.) from the command line. ipcalc is needed by the setup script for adding network cards. --- NEW FILE: ipcalc --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/ipcalc,v $ # $Revision: 1.1 $ # $Date: 2003/10/30 21:48:12 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: ipcalc # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions case $1 in build ) make || exit 1 strip_debug ;; install ) mkdir -p $CDDIR/usr/bin mkdir -p $CDDIR/usr/share/man/man1 cp -dp ipcalc $CDDIR/usr/bin/ || exit 1 cp -dp ipcalc.1 $CDDIR/usr/share/man/man1/ || exit 1 ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |