gopkg.in/hugelgupf/u-root.v2@v2.0.0-20180831055005-3f8fdb0ce09d/cmds/mknod/mknod.go (about)

     1  // Copyright 2017 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Unmount a filesystem at the specified path.
     6  //
     7  // Synopsis:
     8  //     mknod PATH TYPE [MAJOR MINOR]
     9  //
    10  // Description:
    11  //     Creates a special file at PATH of the given TYPE. If TYPE is b, c or u,
    12  //     the MAJOR and MINOR number must be specified. If the TYPE is p, they
    13  //     must not be specified.
    14  package main
    15  
    16  import "log"
    17  
    18  func main() {
    19  	if err := mknod(); err != nil {
    20  		log.Fatal(err)
    21  	}
    22  }