diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-31 16:47:59 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-31 16:47:59 +0200 |
commit | b988bc81d7d5881042242bd31478823b3f904b48 (patch) | |
tree | 2cdbdd3bd9bdf37968ceab0797cef45cd54b24e1 /package/base-files/extra/etc/init.d/boot | |
parent | c3fbeed8234d660b713b9dcdb3cdb80e1e7ff804 (diff) |
remove to extra to avoid installing package metafiles
Diffstat (limited to 'package/base-files/extra/etc/init.d/boot')
-rw-r--r-- | package/base-files/extra/etc/init.d/boot | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/base-files/extra/etc/init.d/boot b/package/base-files/extra/etc/init.d/boot new file mode 100644 index 000000000..f71e46240 --- /dev/null +++ b/package/base-files/extra/etc/init.d/boot @@ -0,0 +1,27 @@ +#!/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 /var/tmp /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 +exit 0 |