From eb893cce4b34b6913ea05d1c10a8a28ae2da4ce4 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 31 Oct 2008 04:24:09 +0000 Subject: [PATCH] Updated -V/--version information to better reflect inxi status, cleaned up a few little glitches. --- inxi | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/inxi b/inxi index b02dff6..4694256 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.2.12 +#### version: 0.2.13 #### Date: October 30 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -487,14 +487,20 @@ show_options() ## print out version information for -V/--version print_version_info() { - print_screen_output "inxi, the universal, portable, system info script for irc." + local last_modified=$( grep -im 1 'date:' $SCRIPT_PATH/$SCRIPT_NAME | awk '{print $3,$4,$5}' ) + + print_screen_output "inxi - the universal, portable, system info script for irc." + print_screen_output "Version: $SCRIPT_VERSION_NUMBER" + print_screen_output "Script Last Modified: $last_modified" + print_screen_output "" print_screen_output "Tested with Irssi, Xchat, Konversation, BitchX, KSirc, ircII," print_screen_output "Gaim/Pidgin, Weechat, KVIrc and Kopete." print_screen_output "" - print_screen_output "This script is a fork of Infobash:" + print_screen_output "This script is a fork of Infobash, which is:" print_screen_output "Copyright (C) 2005-2007 Michiel de Boer a.k.a. locsmif " - print_screen_output "Copyright (C) 2008 Scott Rogers, Harald Hope" - print_screen_output " " + print_screen_output "Subsequent changes and modifications (after Infobash 3.02) are:" + print_screen_output "Copyright (C) 2008 Scott Rogers, Harald Hope, aka trash80 & h2" + print_screen_output "" print_screen_output "This program is free software; you can redistribute it and/or modify" print_screen_output "it under the terms of the GNU General Public License as published by" print_screen_output "the Free Software Foundation; either version 3 of the License, or" @@ -1073,8 +1079,7 @@ get_hard_drive_data() done if [[ -e /proc/scsi/scsi ]];then - # Silly sata detection, will also pick up usb sticks, and it is all I will put into inxi. if you want more, infoperl is on - # the way :) + # Silly sata detection, will also pick up usb sticks. This will be redone soon. IFS=$'\n' a_total_hdd=($(gawk ' BEGIN { IGNORECASE=1 }