cookutils diff uname @ rev 1049
Add uname
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 19 17:43:31 2018 +0300 (2018-04-19) |
parents | |
children | 799a5c056c55 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/uname Thu Apr 19 17:43:31 2018 +0300 1.3 @@ -0,0 +1,10 @@ 1.4 +#!/bin/sh 1.5 +# uname - special "fake" wrapper for using inside SliTaz cooker chroot. 1.6 +# Although SliTaz cooker *host arch* is 64-bit, SliTaz *target arch* may be 1.7 +# 32-bit, and some configuration tools use uname could be improperly configured. 1.8 +# This also applies to the kernel versions of the host and the target systems. 1.9 + 1.10 +. /etc/slitaz/cook.conf 1.11 +kernel_version=$(. /home/slitaz/wok/linux/receipt; echo $VERSION) 1.12 +uname_r=$(/bin/busybox uname -r) 1.13 +/bin/busybox uname $@ | sed "s|x86_64|$ARCH|g; s|$uname_r|$kernel_version-slitaz|g"