File: libsnmp-base.postinst

package info (click to toggle)
net-snmp 5.2.3-7etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 24,452 kB
  • ctags: 16,045
  • sloc: ansic: 175,930; perl: 11,814; sh: 11,230; makefile: 5,375; pascal: 62
file content (11 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/sh

set -e

rm -f /usr/share/snmp/mibs/.index
cd /usr/share/snmp/mibs
for i in `ls -U`; do egrep "DEFINITIONS[ ]*::=[ ]*BEGIN" $i | ( read a b; if [ -n $a ]; then echo $a $i; fi); done > .index

#DEBHELPER#

exit 0