This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ifconfig | egrep -v '^[[:space:]]|(enc|lo|pflog)[[:digit:]]+:' | sed -ne 's/^\(.*\):.*/\1/p' | |
re0 | |
xl0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dmesg | |
OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011 | |
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC | |
cpu0: AMD Athlon(tm) Processor ("AuthenticAMD" 686-class, 256KB L2 cache) 1.01 GHz | |
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE | |
real mem = 234352640 (223MB) | |
avail mem = 220483584 (210MB) | |
mainbus0 at root | |
bios0 at mainbus0: AT/286+ BIOS, date 05/14/08, BIOS32 rev. 0 @ 0xfaa30, SMBIOS rev. 2.2 @ 0xf0000 (31 entries) | |
bios0: vendor Phoenix Technologies, LTD version "6.00PG Rev. 4.00.0Q" date 05/14/2008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
max=85 | |
for disc in $(df | awk '{ print $6 }' | sed '1d'); do | |
capacity=$(df $disc | sed '1d' | awk '{ print $5 }' | tr -cd [[:digit:]]) | |
if [ $capacity -gt $max ]; then | |
echo UWAGA! Partycja \"$disc\" jest zajęta w $capacity procentach. | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/gpio.h> | |
#include <sys/ioctl.h> | |
#include <sys/reboot.h> | |
#include <err.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
for i in $(ls -A) | |
do | |
if [ -d "$i" ]; | |
then | |
echo "Przetwarzam: $i" | |
tar -czf "$i.tgz" "$i" | |
echo " Usuwam: $i" | |
rm -rf "$i" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
version=48 | |
errata=$(lynx --dump --source http://www.openbsd.org/errata.html \ | |
| grep "<a href=\"errata" \ | |
| sed -n '$p' | sed -e 's/<[^>]*>//g' | tr -d [.,]) | |
if [ $errata -gt $version ]; then | |
v1=$(echo $errata | cut -c 1) | |
v2=$(echo $errata | cut -c 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur etc49/etc/changelist etc50/etc/changelist | |
--- etc49/etc/changelist Wed Mar 2 14:51:49 2011 | |
+++ etc50/etc/changelist Wed Aug 17 17:50:53 2011 | |
@@ -1,4 +1,4 @@ | |
-# $OpenBSD: changelist,v 1.71 2011/01/19 18:34:58 david Exp $ | |
+# $OpenBSD: changelist,v 1.74 2011/07/07 06:15:53 schwarze Exp $ | |
# | |
# List of files which the security script backs up and checks | |
# for modifications. | |
@@ -38,6 +38,7 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur etc45/.profile etc46/.profile | |
--- etc45/.profile Sat Feb 28 22:29:27 2009 | |
+++ etc46/.profile Fri Jul 10 05:01:04 2009 | |
@@ -1,4 +1,4 @@ | |
-# $OpenBSD: dot.profile,v 1.5 2005/03/30 21:18:33 millert Exp $ | |
+# $OpenBSD: dot.profile,v 1.8 2009/05/06 22:02:05 millert Exp $ | |
# | |
# sh/ksh initialization | |
@@ -9,5 +9,9 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur etc46/etc/bgpd.conf etc47/etc/bgpd.conf | |
--- etc46/etc/bgpd.conf Fri Jul 10 05:01:04 2009 | |
+++ etc47/etc/bgpd.conf Thu Mar 18 03:31:38 2010 | |
@@ -1,4 +1,4 @@ | |
-# $OpenBSD: bgpd.conf,v 1.8 2007/03/29 13:37:35 claudio Exp $ | |
+# $OpenBSD: bgpd.conf,v 1.9 2009/11/20 19:51:05 claudio Exp $ | |
# sample bgpd configuration file | |
# see bgpd.conf(5) | |
@@ -78,8 +78,8 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur etc47/etc/changelist etc48/etc/changelist | |
--- etc47/etc/changelist Thu Mar 18 03:31:37 2010 | |
+++ etc48/etc/changelist Mon Aug 16 16:46:48 2010 | |
@@ -1,4 +1,4 @@ | |
-# $OpenBSD: changelist,v 1.65 2010/02/22 15:20:22 claudio Exp $ | |
+# $OpenBSD: changelist,v 1.68 2010/06/29 17:17:53 nicm Exp $ | |
# | |
# List of files which the security script backs up and checks | |
# for modifications. | |
@@ -45,6 +45,7 @@ |
OlderNewer