blob: e771262e0c19dfbb538af4e5481749bb123a688a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
--- mxmknod.orig 2018-05-30 22:18:58.663346739 -0400
+++ mxmknod 2018-05-30 22:19:10.086772998 -0400
@@ -5,11 +5,11 @@ dev=/dev
echo "usage: mxmknod [Name] [Major#] [Minor#]"
exit
}
[ -e $dev/$1 ] && {
- ./mxrmnod $1
+ /usr/lib/npreal2/driver/mxrmnod $1
}
if [ -f /etc/sysconfig/selinux ]
then
STATUS=`sestatus | grep "SELinux " | perl -ne '@F = split; print "$F[2]\n";'`
@@ -19,25 +19,29 @@ then
if [ -f /etc/selinux/targeted/setrans.conf ]
then
{
echo "mknod -Z system_u:object_r:tty_device_t:s0 -m 666 $1 c $2 $3"
mknod -Z system_u:object_r:tty_device_t:s0 -m 666 $dev/$1 c $2 $3 > /dev/null 2>&1
+ chown "root:uucp" "$dev/$1"
}
else
{
echo "mknod -Z system_u:object_r:tty_device_t -m 666 $1 c $2 $3"
mknod -Z system_u:object_r:tty_device_t -m 666 $dev/$1 c $2 $3 > /dev/null 2>&1
+ chown "root:uucp" "$dev/$1"
}
fi
}
else
[ -e $dev/$1 ] || {
echo "mknod -m 666 $1 c $2 $3"
mknod -m 666 $dev/$1 c $2 $3 > /dev/null 2>&1
+ chown "root:uucp" "$dev/$1"
}
fi
else
[ -e $dev/$1 ] || {
echo "mknod -m 666 $1 c $2 $3"
mknod -m 666 $dev/$1 c $2 $3 > /dev/null 2>&1
+ chown "root:uucp" "$dev/$1"
}
fi
|