X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Fpostinst;h=9cb70cd5abba45ebcbff7929fec5fd9a808d86ac;hb=52debd74588826ccb27b44793857cf978b45734b;hp=2a255c85052eff0d18378844f53bbf3d588a20f7;hpb=4669719d739974562661cb025a17373eaf115f38;p=debian%2Fmakedev diff --git a/debian/postinst b/debian/postinst index 2a255c8..9cb70cd 100644 --- a/debian/postinst +++ b/debian/postinst @@ -14,16 +14,15 @@ then exit 0 fi -/sbin/MAKEDEV std -/sbin/MAKEDEV consoleonly - -/bin/chmod g-r,o= /dev/tty[0-9]* +/sbin/MAKEDEV std consoleonly fd # ensure base tty set exists, since debootstrap no longer does for i in tty0 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9; do test -e /dev/$i || /sbin/MAKEDEV $i done +/bin/chmod g-r,o= /dev/tty[0-9]* + test -e /dev/random || /sbin/MAKEDEV random test -e /dev/urandom || /sbin/MAKEDEV urandom test -e /dev/audio || /sbin/MAKEDEV audio @@ -31,10 +30,10 @@ test -e /dev/agpgart || /sbin/MAKEDEV agpgart [ ! -f /dev/mouse ] && [ -f /dev/sunmouse ] && ln -s sunmouse mouse -# force update of fb devices if kernel is >= 2.4 and they already exist +# force update of fb devices if kernel is Linux >= 2.4 and they already exist kern_rev1=`uname -r | sed -e 's@^\([^.]*\)\..*@\1@'` kern_rev2=`uname -r | sed -e 's@^[^.]*\.\([^.]*\)\..*@\1@'` -if [ $kern_rev1 -ge 2 ] && [ $kern_rev2 -ge 4 ] && [ -e /dev/fb0 ] +if [ `uname -s` = "Linux" ] && [ $kern_rev1 -ge 2 ] && [ $kern_rev2 -ge 4 ] && [ -e /dev/fb0 ] then /sbin/MAKEDEV fb fi