source:
trunk/packages/invirt-autoinstaller/guest/etc/init.d/rcS.invirt
@
1848
Last change on this file since 1848 was 1497, checked in by broder, 16 years ago | |
---|---|
|
|
File size: 681 bytes |
Rev | Line | |
---|---|---|
[760] | 1 | #!/bin/bash |
[1105] | 2 | eval "set -- $(cat /proc/cmdline)" |
3 | for x; do | |
[741] | 4 | case $x in |
[760] | 5 | ip=*) |
6 | /usr/lib/klibc/bin/ipconfig -d ${x#ip=} | |
7 | ;; | |
8 | mirror=*) | |
[929] | 9 | export MIRROR=${x#mirror=} |
[760] | 10 | ;; |
11 | dist=*) | |
[929] | 12 | export DIST=${x#dist=} |
[760] | 13 | ;; |
14 | arch=*) | |
[929] | 15 | export ARCH=${x#arch=} |
[760] | 16 | ;; |
17 | imagesize=*) | |
[938] | 18 | export FSSIZE=${x#imagesize=} |
[760] | 19 | ;; |
[1148] | 20 | noinstall=) |
[760] | 21 | exit 0 |
22 | ;; | |
[741] | 23 | esac |
24 | done | |
[929] | 25 | |
[741] | 26 | mount -t tmpfs none /var/log |
27 | mount -t tmpfs none /tmp | |
[760] | 28 | |
[929] | 29 | export TARGET=/dev/hda |
30 | export ARCH=${ARCH-amd64} | |
31 | export IP=$(ifconfig eth0 | sed -n 's/.*inet addr:\([0-9\.]*\).*/\1/p') | |
32 | export HOSTNAME=$(hostname) | |
[760] | 33 | |
[1148] | 34 | /etc/init.d/udev start |
35 | ||
[929] | 36 | # args passed through environment rather than as 7 positional args |
[1497] | 37 | /usr/sbin/invirt-create-image |
[760] | 38 | |
[741] | 39 | busybox poweroff |
40 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.