github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/cmds/core/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.Fatalf("mknod: %v", err) 21 } 22 }