Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/allocate/disk_clean.sh
          +++ new/usr/src/cmd/allocate/disk_clean.sh
↓ open down ↓ 215 lines elided ↑ open up ↑
 216  216                  fi
 217  217          done
 218  218  }
 219  219  
 220  220  #
 221  221  # Find all mountpoints in use for a set of device special files.
 222  222  # Usage: findmounts devpath ...
 223  223  #
 224  224  
 225  225  findmounts() {
 226      -        nawk -f - -v vold_root="$VOLD_ROOT" -v devs="$*" /etc/mnttab <<\
      226 +        /usr/xpg4/bin/awk -f - -v vold_root="$VOLD_ROOT" -v devs="$*" /etc/mnttab <<\
 227  227              "ENDOFAWKPGM"
 228  228          BEGIN {
 229  229                  split(devs, devlist, " ");
 230  230                  for (devN in devlist) {
 231  231                          dev = devlist[devN];
 232  232                          realdevlist[dev] = 1;
 233  233                          sub(/.*\//, "", dev);
 234  234                          sub(/s[0-9]$/, "", dev);
 235  235                          if (vold_root != "") {
 236  236                                  vold_dir[vold_root "/dev/dsk/" dev] = 1;
↓ open down ↓ 326 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX