setup

来自「一个网络流量分析的完整的程序」· 代码 · 共 45 行

TXT
45
字号
#!/bin/sh## IPTraf Setup System# Written by Gerard Paul Java <riker@seul.org># Version 2.6.0## This script determines whether the IPTraf distribution is source code# or ready-to-run executable files.  It will automatically recompile# source code before installation, and will immediately install# precompiled executables.## If started with the -c command-line option, the software will be# recompiled from the sources before installation.## The actual installation scripts are in the src/ directory.#VERSION=`cat src/version`clearecho "====================================================================="echo " IPTraf Version $VERSION Setup"echo " Target Platform: $(uname -s)/$(uname -m)"echo "---------------------------------------------------------------------"echoif [ ! -x src/iptraf -o "$1" = "-c" ]; then    if [ -f src/iptraf.c ]; then        echo ">>>>>> COMPILING IPTRAF $VERSION FROM SUPPLIED SOURCE CODE"        echo        /usr/bin/make -C src clean        /usr/bin/make -C support clean        /usr/bin/make -C src all    else        echo "*** ERROR: Unable to locate source files."        echo "*** If this is a binary-only distribution of IPTraf, try running $0"        echo "    again without -c."        echo        echo "*** $0 exiting with error code 1"        echo        exit 1    fifi/usr/bin/make -C src install

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?