mirror of
https://github.com/termux/proot.git
synced 2024-09-22 08:31:06 +00:00
14 lines
219 B
Bash
14 lines
219 B
Bash
if [ -z `which mknod`] || [ `id -u` -eq 0 ]; then
|
|
exit 125;
|
|
fi
|
|
|
|
TMP=/tmp/$(mcookie)
|
|
|
|
! ${PROOT} mknod ${TMP} b 1 1
|
|
[ $? -eq 0 ]
|
|
|
|
! ${PROOT} -i 123:456 mknod ${TMP} b 1 1
|
|
[ $? -eq 0 ]
|
|
|
|
${PROOT} -0 mknod ${TMP} b 1 1
|