summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-15 06:05:39 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-18 12:03:58 +0200
commita2d2e8868fe3c963ebac634b695ae18bb4b411ca (patch)
treeb39bdcd51c772a846c886dc0702d9c86d9d3516a /defaultenv
parent903d93919310c6d515f217c81a5b33cdec791116 (diff)
downloadbarebox-a2d2e8868fe3c963ebac634b695ae18bb4b411ca.tar.gz
config: switch machine to hostname
So we can use it for dhcp request too. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/config18
1 files changed, 9 insertions, 9 deletions
diff --git a/defaultenv/config b/defaultenv/config
index 39a9c99..3e4c2ee 100644
--- a/defaultenv/config
+++ b/defaultenv/config
@@ -1,6 +1,6 @@
#!/bin/sh
-machine=FIXME
+hostname=FIXME
#user=
# Enter MAC address here if not retrieved automatically
@@ -29,25 +29,25 @@ oftree_loc=tftp
rootfs_type=ubifs
# where is the rootfs in case of 'rootfs_loc=disk' (linux name)
rootfs_part_linux_dev=mmcblk0p4
-rootfsimage=rootfs-${machine}.$rootfs_type
+rootfsimage=rootfs-${hostname}.$rootfs_type
# where is the kernel image in case of 'kernel_loc=disk'
kernel_part=disk0.2
-kernelimage=zImage-$machine
-#kernelimage=uImage-$machine
-#kernelimage=Image-$machine
-#kernelimage=Image-$machine.lzo
+kernelimage=zImage-$hostname
+#kernelimage=uImage-$hostname
+#kernelimage=Image-$hostname
+#kernelimage=Image-$hostname.lzo
-bareboximage=barebox-${machine}.bin
-bareboxenvimage=barebox-${machine}.bin
+bareboximage=barebox-${hostname}.bin
+bareboxenvimage=barebox-${hostname}.bin
if [ -n $user ]; then
bareboximage="$user"-"$bareboximage"
bareboxenvimage="$user"-"$bareboxenvimage"
kernelimage="$user"-"$kernelimage"
rootfsimage="$user"-"$rootfsimage"
- nfsroot="/home/$user/nfsroot/$machine"
+ nfsroot="/home/$user/nfsroot/$hostname"
else
nfsroot="/path/to/nfs/root"
fi