summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-06-02 10:02:37 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-02 10:05:59 +0200
commitf648042cb88930d880eacda825b6edf2158894d6 (patch)
tree4538ce30f0fe6076aa8ed9e82833ee2c89a929fa /scripts
parent591ac4ebcf7fb4f474c2dadde1f5f0a9d8d48676 (diff)
downloadptxdist-f648042cb88930d880eacda825b6edf2158894d6.tar.gz
ptxdist-f648042cb88930d880eacda825b6edf2158894d6.tar.xz
ptxd_install_generic: fix creating device nodes
'stat' prints major/minor numbers as hex. Add '0x' so that 'mknod' interprets them correctly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_make_xpkg_pkg.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index bd45b7db9..ee1229a9a 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -373,7 +373,7 @@ ptxd_install_generic() {
local strip="$5"
local -a stat
- stat=( $(stat -c "%u %g %a %t %T" "${file}") ) &&
+ stat=( $(stat -c "%u %g %a 0x%t 0x%T" "${file}") ) &&
local usr="${usr:-${stat[0]}}" &&
local grp="${grp:-${stat[1]}}" &&
local mod="${stat[2]}" &&