source: hybrid/branches/releng-9.0/nanobsd/files/tools/wl-version@ 10608

Last change on this file since 10608 was 10608, checked in by rick, 13 years ago

The conditional statements and variables where not set correctly at all (last
commit properly done too late).

While here:

  • Cleanup logging format to logger, as all but the PREINIT hooks get called in privileged [priv] (forked) environment, where stdout goes to nothing.
  • Print more details to yield more logic to the user.

Related-To: nodefactory#129

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 625 bytes
Line 
1#!/bin/sh
2# Get bare minimal information of node, for the use of easy debugging
3# Rick van der Zwet <info@rickvanderzwet.nl>
4
5# Trac specific code
6echo "----"
7echo "{{{"
8
9# Introduction
10echo "Generated by $USER@`hostname`"
11echo "Date: `date`"
12
13# Kernel information
14uname -a | fold
15
16# Mount information, for the use of checking which slize is usd
17mount
18
19# static iinformation, on image, like build, time, who,
20VERSION='/tools/wl-release.txt'
21cat $VERSION
22
23if [ -r /VERSION ]; then
24 cat /VERSION
25 seperator
26fi
27
28# Current ip configuration
29ifconfig -a
30
31# XXX: Configuration specifics
32
33# Trac specific code
34echo "}}}"
35echo "----"
Note: See TracBrowser for help on using the repository browser.