mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-11 02:49:28 +00:00
parent
4536666544
commit
ffb0aa61b4
@ -90,8 +90,22 @@ function compileRaScsi() {
|
||||
( make clean && make -j "${CORES:-1}" all CONNECT_TYPE="${CONNECT_TYPE:-FULLSPEC}" ) </dev/null
|
||||
}
|
||||
|
||||
function cleanupOutdatedManPage() {
|
||||
OUTDATED_MAN_PAGE_DIR=/usr/share/man/man1/
|
||||
if [ -f "${OUTDATED_MAN_PAGE_DIR}/$1" ]; then
|
||||
sudo rm "${OUTDATED_MAN_PAGE_DIR}/$1"
|
||||
fi
|
||||
}
|
||||
|
||||
# install the RaSCSI binaries and modify the service configuration
|
||||
function installRaScsi() {
|
||||
# clean up outdated man pages if they exist
|
||||
cleanupOutdatedManPage "rascsi.1"
|
||||
cleanupOutdatedManPage "rasctl.1"
|
||||
cleanupOutdatedManPage "scsimon.1"
|
||||
cleanupOutdatedManPage "rasdump.1"
|
||||
cleanupOutdatedManPage "sasidump.1"
|
||||
# install
|
||||
sudo make install CONNECT_TYPE="${CONNECT_TYPE:-FULLSPEC}" </dev/null
|
||||
}
|
||||
|
||||
|
@ -121,7 +121,7 @@ int main(int argc, char* argv[])
|
||||
cerr << "[-F IMAGE_FOLDER] [-L LOG_LEVEL] [-h HOST] [-p PORT] [-r RESERVED_IDS] ";
|
||||
cerr << "[-C FILENAME:FILESIZE] [-d FILENAME] [-w FILENAME] [-R CURRENT_NAME:NEW_NAME] ";
|
||||
cerr << "[-x CURRENT_NAME:NEW_NAME] [-z LOCALE] ";
|
||||
cerr << "[-e] [-E FILENAME] [-D] [-I] [-l] [-L] [-m] [o] [-O] [-s] [-v] [-V] [-y] [-X]" << endl;
|
||||
cerr << "[-e] [-E FILENAME] [-D] [-I] [-l] [-L] [-m] [o] [-O] [-P] [-s] [-v] [-V] [-y] [-X]" << endl;
|
||||
cerr << " where ID := {0-7}" << endl;
|
||||
cerr << " UNIT := {0-31}, default is 0" << endl;
|
||||
cerr << " CMD := {attach|detach|insert|eject|protect|unprotect|show}" << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user