File make changed (mode: 100755) (index bce2c17..9f4bb09) |
... |
... |
Standard options: |
152 |
152 |
--lib-path-list=LIB_PATH_LIST colon separated paths to look for target libraries |
--lib-path-list=LIB_PATH_LIST colon separated paths to look for target libraries |
153 |
153 |
--uevents-timeout=UEVENTS_TIMEOUT uevents timeout in ms looking up for root block device to go online [$uevents_timeout] |
--uevents-timeout=UEVENTS_TIMEOUT uevents timeout in ms looking up for root block device to go online [$uevents_timeout] |
154 |
154 |
--quiet init will be silenced (output code compiled out) |
--quiet init will be silenced (output code compiled out) |
155 |
|
--no-tty init won't respawn login processes on ttys |
|
156 |
155 |
--linux-src-dir=DIR where to find the target linux source tree [$linux_src_dir_default] |
--linux-src-dir=DIR where to find the target linux source tree [$linux_src_dir_default] |
157 |
156 |
--kernel-release=RELEASE the linux releases version [$kernel_release] |
--kernel-release=RELEASE the linux releases version [$kernel_release] |
158 |
157 |
--kernel-modules-base-dir=DIR the base dir for linux modules and support files [$kernel_modules_base_dir] |
--kernel-modules-base-dir=DIR the base dir for linux modules and support files [$kernel_modules_base_dir] |
|
... |
... |
for opt do |
182 |
181 |
;; |
;; |
183 |
182 |
--quiet) CPPFLAGS="$CPPFLAGS -DQUIET" |
--quiet) CPPFLAGS="$CPPFLAGS -DQUIET" |
184 |
183 |
;; |
;; |
185 |
|
--no_tty) CPPFLAGS="$CPPFLAGS -DNO_TTY" |
|
186 |
|
;; |
|
187 |
184 |
*) |
*) |
188 |
185 |
optname=${opt%%=*} |
optname=${opt%%=*} |
189 |
186 |
optname=${optname#--} |
optname=${optname#--} |
File script/example_init.sh deleted (index 225da95..0000000) |
1 |
|
#!/bin/sh -l |
|
2 |
|
|
|
3 |
|
/bin/mount -o nosuid,nodev,noexec,relatime -t proc proc /proc |
|
4 |
|
/bin/mount -o nosuid,nodev,noexec,relatime -t sysfs sysfs /sys |
|
5 |
|
|
|
6 |
|
#------------------------------------------------------------------------------- |
|
7 |
|
#mount /dev |
|
8 |
|
/bin/mount -o exec,nosuid,relatime,size=10M,mode=0755 -t devtmpfs udev /dev |
|
9 |
|
|
|
10 |
|
/bin/mkdir -m 0755 -p /dev/pts |
|
11 |
|
/bin/mount -o relatime,gid=5,mode=0620 -t devpts devpts /dev/pts |
|
12 |
|
|
|
13 |
|
#may be useless |
|
14 |
|
/bin/mkdir -m 1777 -p /dev/shm |
|
15 |
|
/bin/mount -o nosuid,nodev,noexec,relatime -t tmpfs shm /dev/shm |
|
16 |
|
#------------------------------------------------------------------------------- |
|
17 |
|
|
|
18 |
|
/bin/mount -o nosuid,nodev,relatime,mode=0755 -t tmpfs tmpfs /run |
|
19 |
|
/bin/rm -Rf /tmp/* |
|
20 |
|
/bin/hostname "freedom" |
|
21 |
|
|
|
22 |
|
#------------------------------------------------------------------------------- |
|
23 |
|
#udev |
|
24 |
|
/sbin/modprobe unix |
|
25 |
|
/bin/rm -Rf /run/udev |
|
26 |
|
echo "" >/sys/kernel/uevent_helper |
|
27 |
|
/lib/udev/udevd --daemon |
|
28 |
|
/sbin/udevadm trigger --type=subsystems --action=add |
|
29 |
|
/sbin/udevadm trigger --type=devices --action=add |
|
30 |
|
|
|
31 |
|
#those modules need /dev nodes |
|
32 |
|
/sbin/modprobe rtc-cmos |
|
33 |
|
/sbin/modprobe radeon |
|
34 |
|
/sbin/modprobe fbcon |
|
35 |
|
|
|
36 |
|
/sbin/udevadm settle |
|
37 |
|
#------------------------------------------------------------------------------- |
|
38 |
|
|
|
39 |
|
#------------------------------------------------------------------------------- |
|
40 |
|
#network |
|
41 |
|
/sbin/modprobe sch-dsmark |
|
42 |
|
/sbin/ip addr add 127.0.0.1/8 dev lo |
|
43 |
|
/sbin/ip addr add 192.168.1.2/24 dev eth0 |
|
44 |
|
/sbin/ip link set dev lo up |
|
45 |
|
/sbin/ip link set dev eth0 up |
|
46 |
|
#------------------------------------------------------------------------------- |
|
47 |
|
|
|
48 |
|
#------------------------------------------------------------------------------- |
|
49 |
|
#CPUs |
|
50 |
|
/sbin/modprobe -r microcode |
|
51 |
|
/sbin/modprobe microcode |
|
52 |
|
/sbin/modprobe powernow-k8 |
|
53 |
|
/usr/bin/cpufreq-set --related --governor ondemand |
|
54 |
|
#------------------------------------------------------------------------------- |
|
55 |
|
|
|
56 |
|
#------------------------------------------------------------------------------- |
|
57 |
|
/sbin/hwclock --utc --hctosys |
|
58 |
|
#------------------------------------------------------------------------------- |
|
59 |
|
|
|
60 |
|
/usr/sbin/alsactl restore |
|
61 |
|
|
|
62 |
|
#------------------------------------------------------------------------------- |
|
63 |
|
#block scheduler |
|
64 |
|
/sbin/modprobe cfq-iosched |
|
65 |
|
echo "cfq" > /sys/block/sda/queue/scheduler |
|
66 |
|
#------------------------------------------------------------------------------- |
|
67 |
|
|
|
68 |
|
/sbin/swapon -a |
|
69 |
|
/sbin/sysctl |
|
70 |
|
|
|
71 |
|
#------------------------------------------------------------------------------- |
|
72 |
|
#console terminal setup |
|
73 |
|
printf "\033%s" "%G" >/dev/tty1 |
|
74 |
|
/usr/bin/kbd_mode -u -C /dev/tty1 |
|
75 |
|
printf "\033%s" "%G" >/dev/tty2 |
|
76 |
|
/usr/bin/kbd_mode -u -C /dev/tty2 |
|
77 |
|
printf "\033%s" "%G" >/dev/tty3 |
|
78 |
|
/usr/bin/kbd_mode -u -C /dev/tty3 |
|
79 |
|
/usr/bin/loadkeys -q dvorak |
|
80 |
|
#------------------------------------------------------------------------------- |
|
81 |
|
|
|
82 |
|
#------------------------------------------------------------------------------- |
|
83 |
|
#utmp/wtmp |
|
84 |
|
: >/var/run/utmp |
|
85 |
|
/bin/chgrp utmp /var/run/utmp 2>/dev/null |
|
86 |
|
/bin/chmod 0664 /var/run/utmp |
|
87 |
|
if test ! -e /var/log/wtmp; then |
|
88 |
|
: >/var/log/wtmp |
|
89 |
|
/bin/chgrp utmp /var/log/wtmp 2>/dev/null |
|
90 |
|
/bin/chmod 0664 /var/log/wtmp |
|
91 |
|
fi |
|
92 |
|
#------------------------------------------------------------------------------- |
|
93 |
|
|
|
94 |
|
/usr/sbin/syslog-ng |
|
95 |
|
/usr/sbin/fcron |
|