MAKEDEV.LOCAL(8)
π MAKEDEV.LOCAL π
okay bestie, so this is a page from the System Manager's Manual β yes, the actual system manager manual, and yes you're reading it, we love a main character who self-educates π
β¨ NAME β¨
MAKEDEV.local β create site-specific device special files
like, it makes your own device files. site-specific. your site. your rules. π
πΈ SYNOPSIS πΈ
MAKEDEV.local [-fMsu] [-m mknod] [-p pax] [-t mtree] {all |
site-specific-argument} [...]
look at that little syntax sandwich, so iconic π₯
π¦ DESCRIPTION π¦
So MAKEDEV.local is the vibe where you create site-specific device special files. Each argument can either be the word all or a site-specific argument. And here's the tea: by default there are no valid site-specific arguments, and the all argument has literally no effect β but you can change all that by editing the script, iykyk π
The script lives at /dev/MAKEDEV.local. Devices get created in the current working directory, which is highkey important: in normal use, you should invoke MAKEDEV.local with /dev as the current working directory. fr fr, don't skip that.
The supported options for MAKEDEV.local are the same as for MAKEDEV(8) β same energy, same flags, no notes π
π FILES π
/devβ special device files directory (the hangout spot)/dev/MAKEDEVβ script that invokesMAKEDEV.localwith theallargument/dev/MAKEDEV.localβ the script described in this man page (the star of the show β¨)
π SEE ALSO π
config(1), intro(4), MAKEDEV(8), mknod(8)
go read those too bestie, expanding your brain is always in season π§
β HISTORY β
The MAKEDEV.local command appeared in 4.2BSD β a certified vintage icon. π°οΈ
Handling of the same command line options as MAKEDEV(8), and the use of MAKEDEV(8) as a function library, was added in NetBSD 5.0. glow-up behavior honestly.
π NOTES π
ngl, the relationship between MAKEDEV.local and MAKEDEV(8) is complex β it's giving situationship π here's the breakdown:
- If
MAKEDEV(8)is invoked with theallorlocalargument, then it will invokeMAKEDEV.localas a child process, with options similar to those that were originally passed toMAKEDEV(8), and with theallargument. so like, parent calls child, child gets handed the same-ish flags plusall. family business. MAKEDEV.localuses shell functions defined inMAKEDEV(8). This is done by loadingMAKEDEV(8)using the shell.command, with theMAKEDEV_AS_LIBRARYvariable set (to informMAKEDEV(8)that it should behave as a function library, not as an independent program). soMAKEDEV_AS_LIBRARYis literally the "you're a library now bestie" flag π«Ά
π real talk: thatMAKEDEV_AS_LIBRARYvariable isn't optional decoration β it's howMAKEDEV(8)knows to switch modes and act like a library instead of running as its own program. respect the variable.
Debian Β· August 6, 2011 β okay that's the whole page, you ate that, go make some device files and slay πβ¨ππ¦πΈ
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2007 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms