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