2 USING: namespaces threads
3 unix.process unix.linux.if unix.linux.ifreq unix.linux.route
8 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
13 "lo" "127.0.0.1" set-if-addr
14 "lo" { IFF_UP } flags set-if-flags ;
16 : configure-eth1 ( -- )
17 "eth1" "192.168.1.10" set-if-addr
18 "eth1" { IFF_UP IFF_MULTICAST } flags set-if-flags ;
20 : configure-route ( -- )
21 "0.0.0.0" "192.168.1.1" "0.0.0.0" { RTF_UP RTF_GATEWAY } flags route ;
27 ] networking-hook set-global
29 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
33 "/dev/hda1" root-device set-global
35 { "/dev/hda5" } swap-devices set-global
37 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
39 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
46 "mountvirtfs" start-service
48 ! "hostname.sh" start-service
49 "narodnik" set-hostname
51 "keymap.sh" start-service
52 "linux-restricted-modules-common" start-service
54 "mountdevsubfs" start-service
55 "module-init-tools" start-service
56 "procps.sh" start-service
58 ! "checkroot.sh" start-service
64 "checkfs.sh" start-service
65 "mountall.sh" start-service
68 ! "loopback" start-service
69 ! "networking" start-service
71 "hwclock.sh" start-service
72 "displayconfig-hwprobe.py" start-service
73 "screen" start-service
74 "x11-common" start-service
75 "bootmisc.sh" start-service
76 "urandom" start-service
80 "vbesave" start-service
82 "powernowd.early" start-service
83 "sysklogd" start-service
87 "hotkey-setup" start-service
88 "laptop-mode" start-service
89 "makedev" start-service
90 "nvidia-kernel" start-service
91 "postfix" start-service
92 "powernowd" start-service
93 "ntp-server" start-service
94 "binfmt-support" start-service
95 "acpi-support" start-service
96 "rc.local" start-service
97 "rmnologin" start-service
101 [ [ "/dev/tty2" tty-listener ] forever ] in-thread
102 [ [ "/dev/tty3" tty-listener ] forever ] in-thread
103 [ [ "/dev/tty4" tty-listener ] forever ] in-thread
104 [ [ "/dev/tty5" getty ] forever ] in-thread
105 [ [ "/dev/tty6" getty ] forever ] in-thread
107 ] boot-hook set-global
109 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
111 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
114 "acpi-support" stop-service
117 "hotkey-setup" stop-service
118 "laptop-mode" stop-service
119 "makedev" stop-service
120 "nvidia-kernel" stop-service
121 "powernowd" stop-service
123 "hwclock.sh" stop-service
124 "alsa-utils" stop-service
126 "binfmt-support" stop-service
127 "sysklogd" stop-service
128 "linux-restricted-modules-common" stop-service
129 "sendsigs" stop-service
130 "urandom" stop-service
131 "umountnfs.sh" stop-service
132 "networking" stop-service
133 "umountfs" stop-service
134 "umountroot" stop-service
135 "reboot" stop-service
136 ] reboot-hook set-global
138 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
140 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
143 "acpi-support" stop-service
146 "hotkey-setup" stop-service
147 "laptop-mode" stop-service
148 "makedev" stop-service
149 "nvidia-kernel" stop-service
150 "postfix" stop-service
151 "powernowd" stop-service
153 "hwclock.sh" stop-service
154 "alsa-utils" stop-service
156 "binfmt-support" stop-service
157 "sysklogd" stop-service
158 "linux-restricted-modules-common" stop-service
159 "sendsigs" stop-service
160 "urandom" stop-service
161 "umountnfs.sh" stop-service
162 "umountfs" stop-service
163 "umountroot" stop-service
165 ] shutdown-hook set-global