Create loopback device in finit-alt (for squashfs)

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka
2008-03-14 14:16:29 -03:00
parent c8f171556b
commit e4f675fa1a
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
O.4 ()
- create /dev/initctl fifo in finit-alt (for reboot)
- default username for finit-alt configurable in Makefile
- create loopback device node in finit-alt (for squashfs)
0.3 (20080223)
- Change poweroff method to reboot(RB_POWER_OFF) (Metalshark)
+2
View File
@@ -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);