diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-04-15 06:05:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-18 12:03:58 +0200 |
commit | a2d2e8868fe3c963ebac634b695ae18bb4b411ca (patch) | |
tree | b39bdcd51c772a846c886dc0702d9c86d9d3516a /defaultenv | |
parent | 903d93919310c6d515f217c81a5b33cdec791116 (diff) | |
download | barebox-a2d2e8868fe3c963ebac634b695ae18bb4b411ca.tar.gz barebox-a2d2e8868fe3c963ebac634b695ae18bb4b411ca.tar.xz |
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/config | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/defaultenv/config b/defaultenv/config index 39a9c99868..3e4c2eef6c 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 |