File: update-0.16

package info (click to toggle)
linpac 0.28-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,984 kB
  • sloc: cpp: 18,310; sh: 10,697; ansic: 4,036; makefile: 210; perl: 101
file content (24 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Add BLOCK7P setting to the init script

FILE=$HOMEDIR/macro/init.mac
TEMP=/tmp/update.$$

awk '
   {
      print
   }

/HOME_ADDR/ {
      if ($1 == "set") {
         print ""
         print ";; Preferred size of 7plus blocks"
         print "set BLOCK7P 5120"
      }
}' <$FILE >$TEMP

cp -f $FILE $FILE.old
cp -f $TEMP $FILE
rm -f $TEMP
rm -f $FILE.old