blob: ed55ccc881a1e76799e36d06470604f98243e20d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
#INIT 10
[[ $1 = autostart ]] || exit 0
. /etc/functions.sh
mkdir -p /var/log
mkdir -p /var/run
touch /var/log/lastlog
touch /var/log/wtmp
ln -s /tmp /var/tmp
echo 0 > /proc/sys/kernel/printk
HOSTNAME=
[[ -s /etc/hostname ]] && HOSTNAME=$(cat /etc/hostname)
HOSTNAME=${HOSTNAME%%.*}
echo ${HOSTNAME:=linux} >/proc/sys/kernel/hostname
chown 0:0 /tmp; chmod 1777 /tmp
load_modules /etc/modules
for f in /etc/modules.d/*; do
[[ -e $f ]] && load_modules /etc/modules.d/*
break
done
# settle down, after module load
sleep 2
exit 0
|