File: t.chmod_dev

package info (click to toggle)
fakeroot 1.37.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,904 kB
  • sloc: sh: 5,430; ansic: 5,340; makefile: 199; perl: 14
file content (10 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
. ./defs || exit 1

mkdir $tmp
# fakeroot mangles spaces unless the getopt utility is the GNU version
echo "mknod $tmp/hda3 b 3 0 && chmod 644 $tmp/hda3 && ls -ld $tmp/hda3" > $tmp/sh
run_fakeroot -- \
    ${posixshell} $tmp/sh > $tmp/out
cat $tmp/out
grep '^b' $tmp/out