mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +00:00
Create loopback device in finit-alt (for squashfs)
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
c8f171556b
commit
e4f675fa1a
2 files changed
+3
No files matched your search
@@ -88,6 +88,7 @@ THE SOFTWARE.
|
||||
|
||||
#define touch(x) mknod((x), S_IFREG|0644, 0)
|
||||
#define chardev(x,m,maj,min) mknod((x), S_IFCHR|(m), makedev((maj),(min)))
|
||||
#define blkdev(x,m,maj,min) mknod((x), S_IFBLK|(m), makedev((maj),(min)))
|
||||
|
||||
|
||||
void shutdown(int);
|
||||
@@ -191,6 +192,7 @@ int main()
|
||||
chardev("/dev/input/mice", 0660, 13, 63);
|
||||
chardev("/dev/input/event0", 0660, 13, 64);
|
||||
chardev("/dev/agpgart", 0660, 10, 175);
|
||||
blkdev("/dev/loop0", 0600, 7, 0);
|
||||
#endif
|
||||
|
||||
umask(0022);
|
||||
|
||||
Reference in new issue
Block a user