diff --git a/inxi b/inxi index 0b083a2..10abccd 100755 --- a/inxi +++ b/inxi @@ -1,9 +1,9 @@ -#!/bin/bash +#!/usr/bin/env bash ######################################################################## #### Script Name: inxi -#### version: 1.8.32 -#### Date: January 23 2013 -#### Patch Number: 02-one +#### Version: 1.9.8 +#### Date: June 14 2013 +#### Patch Number: 00-b1 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -53,7 +53,7 @@ #### DEPENDENCIES #### * bash >=3.0 (bash); df, readlink, stty, tr, uname, wc (coreutils); #### gawk (gawk); grep (grep); lspci (pciutils); -#### free, ps, uptime (procps); find (findutils) +#### ps, uptime (procps); find (findutils) #### * Also the proc filesystem should be present and mounted #### * Some features, like -M and -d will not work, or will work incompletely, #### if /sys is missing @@ -84,6 +84,20 @@ #### and ideally, pwmconfig) prior to full output being available. #### -S For desktop environment, user must be in X and have xprop installed (in X11-utils) ######################################################################## +#### BSD Adjustments +#### * sed -i '' form supported by using SED_I="-i ''". +#### * Note: New BSD sed supports using -r instead of -E for compatibility with gnu sed +#### However, older, like FreeBSD 7.x, does not have -r so using SED_RX='-E' for this. +#### * Gnu grep options can be used if the function component is only run in linux +#### These are the options that bsd grep does not support that inxi uses: -m -o +#### so make sure if you use those to have them in gnu/linux only sections. +#### It appears that freebsd uses gnu grep but openbsd uses bsd grep, however. +#### * BSD ps does not support --without-headers option, and also does not support --sort