fix for compile

This commit is contained in:
Ertuğrul Erata
2015-05-22 21:02:13 +03:00
parent b3db072f8d
commit b2a08cbdf2
46 changed files with 3286 additions and 68 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/python
import os
def createNode(mode, uid, gid, minor, major, path):
os.system("/bin/mknod --mode=%d %s c %d %d" % (mode, path, minor, major))
os.system("/bin/chown %s:%s %s" % (uid, gid, path))
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
createNode(600, "root", "root", 1, 11, "/lib/udev/devices/kmsg")
createNode(666, "root", "root", 1, 3, "/lib/udev/devices/null")
createNode(666, "root", "root", 1, 5, "/lib/udev/devices/zero")
createNode(600, "root", "root", 10, 130, "/lib/udev/devices/watchdog")
createNode(666, "root", "root", 10, 229, "/lib/udev/devices/fuse")
createNode(600, "root", "tty", 5, 1, "/lib/udev/devices/console")
createNode(666, "root", "tty", 5, 2, "/lib/udev/devices/ptmx")
createNode(666, "root", "tty", 5, 0, "/lib/udev/devices/tty")
createNode(620, "root", "tty", 4, 1, "/lib/udev/devices/tty1")
createNode(600, "root", "root", 10, 200, "/lib/udev/devices/net/tun")
createNode(600, "root", "root", 36, 0, "/lib/udev/devices/route")
createNode(600, "root", "root", 10, 200, "/lib/udev/devices/skip")
createNode(660, "root", "dialout", 108, 0, "/lib/udev/devices/ppp")
if os.path.exists("/lib/udev/devices/rtc"):
os.unlink("/lib/udev/devices/rtc")
# Migrate UDEV database
if fromVersion and int(fromVersion) < 165:
os.system("/sbin/udevadm info --convert-db &> /dev/null")