Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2964 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Hardware

  [gentoo] ptit probleme devfs =$

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[gentoo] ptit probleme devfs =$

n°346966
k666
dites non à petitmou
Posté le 29-10-2003 à 22:02:53  profilanswer
 

hello
j'ai un device qui crée un mauvais lien, et à chaque démarrage je dois le modifier à la mano :/
 

Code :
  1. pana dev # tail /var/log/daemon.log | grep device
  2. Oct 30 21:34:00 localhost vtund[3597]: Can't allocate tun device tun0. No such file or directory(2)
  3. Oct 30 21:44:22 localhost vtund[3640]: Can't allocate tun device tun0. No such file or directory(2)
  4. pana dev #
  5. pana dev # find /dev/ | grep tun
  6. /dev/misc/net/tun
  7. /dev/net/tun
  8. pana dev #
  9. pana dev # cd /dev/net/
  10. pana net # ll
  11. total 0
  12. drwxr-xr-x    1 root     root            0 Oct 30 21:33 .
  13. drwxr-xr-x    1 root     root            0 Jan  1  1970 ..
  14. lr-xr-xr-x    1 root     root           12 Oct 30 21:33 tun -> misc/net/tun
  15. pana net #
  16. pana net # rm tun
  17. pana net # ln -s /dev/misc/net/tun tun
  18. pana net # ll
  19. total 0
  20. drwxr-xr-x    1 root     root            0 Oct 30 21:33 .
  21. drwxr-xr-x    1 root     root            0 Jan  1  1970 ..
  22. lr-xr-xr-x    1 root     root           17 Oct 30 21:54 tun -> /dev/misc/net/tun
  23. pana net #
  24. pana net # vtund killer 195.68.69.129
  25. pana net # tail /var/log/daemon.log
  26. Oct 30 21:54:53 localhost vtund[3684]: VTun client ver 2.6 10/26/2003 started
  27. Oct 30 21:54:53 localhost vtund[3684]: Connecting to 195.xxx.yyy.zzz
  28. Oct 30 21:54:53 localhost vtund[3684]: Session killer[195.xxx.yyy.zzz] opened
  29. Oct 30 21:54:53 localhost vtund[3684]: ZLIB compression[level 1] initialized.
  30. Oct 30 21:54:53 localhost vtund[3684]: BlowFish encryption initialized
  31. pana net #


 
 
la donc ca marche, c le lien qui est mauvais, mais je sais pas comment faire pour qu'au reboote ca ne rechiegne :/  
 

mood
Publicité
Posté le 29-10-2003 à 22:02:53  profilanswer
 

n°346972
Mjules
Modérateur
Parle dans le vide
Posté le 29-10-2003 à 22:06:44  profilanswer
 

c'est quelque part dans /etc/devfsd.conf qu'il doit falloir changer ça.


---------------
Celui qui pose une question est idiot 5 minutes. Celui qui n'en pose pas le reste toute sa vie. |  Membre du grand complot pharmaceutico-médico-scientifico-judéo-maçonnique.
n°347075
k666
dites non à petitmou
Posté le 30-10-2003 à 00:06:17  profilanswer
 

ouais je crois qu'il faudrait que je mette keke chose ! pour l'instant j'ai ça:

Code :
  1. # Sample /etc/devfsd.conf configuration file.
  2. # Richard Gooch  <rgooch@atnf.csiro.au>         3-JUL-2000
  3. #
  4. # The Gentoo Linux Team - http://www.gentoo.org/
  5. #     - Many fixes, etc
  6. #
  7. # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/devfsd.conf,v 1.16 2003/05/18 21:51:34 azarah Exp $
  8. # Enable full compatibility mode for old device names. You may comment these
  9. # out if you don't use the old device names. Make sure you know what you're
  10. # doing!
  11. REGISTER        .*           MKOLDCOMPAT
  12. UNREGISTER      .*           RMOLDCOMPAT
  13. # You may comment out the above and uncomment the following if you've
  14. # configured your system to use the original "new" devfs names or the really
  15. # new names
  16. #REGISTER       vc/.*        MKOLDCOMPAT
  17. #UNREGISTER     vc/.*        RMOLDCOMPAT
  18. #REGISTER       pty/.*       MKOLDCOMPAT
  19. #UNREGISTER     pty/.*       RMOLDCOMPAT
  20. #REGISTER       misc         MKOLDCOMPAT
  21. #UNREGISTER     misc         RMOLDCOMPAT
  22. # You may comment these out if you don't use the original "new" names
  23. REGISTER        .*           MKNEWCOMPAT
  24. UNREGISTER      .*           RMNEWCOMPAT
  25. # Enable module autoloading. You may comment this out if you don't use
  26. # autoloading
  27. LOOKUP          .*           MODLOAD
  28. # Uncomment the following if you want to set the group to "tty" for the
  29. # pseudo-tty devices. This is necessary so that mesg(1) can later be used to
  30. # enable/disable talk requests and wall(1) messages.
  31. REGISTER        ^pty/s.*     PERMISSIONS -1.tty  0600
  32. REGISTER        ^pts/.*      PERMISSIONS -1.tty  0600
  33. # Uncomment this if you want permissions to be saved and restored
  34. # NB: Do NOT change the following!
  35. # Do not do this for pseudo-terminal devices
  36. REGISTER        ^pt[sy]/.*   IGNORE
  37. CHANGE          ^pt[sy]/.*   IGNORE
  38. CREATE          ^pt[sy]/.*   IGNORE
  39. DELETE          ^pt[sy]      IGNORE
  40. REGISTER        ^log         IGNORE
  41. CHANGE          ^log         IGNORE
  42. CREATE          ^log         IGNORE
  43. DELETE          ^log         IGNORE
  44. REGISTER        .*           COPY    /lib/dev-state/$devname $devpath
  45. CHANGE          .*           COPY    $devpath /lib/dev-state/$devname
  46. CREATE          .*           COPY    $devpath /lib/dev-state/$devname
  47. DELETE          .*           CFUNCTION GLOBAL unlink /lib/dev-state/$devname
  48. RESTORE         /lib/dev-state
  49. # You can force default like this :
  50. # PERMISSIONS owner_and_group access_mode
  51. # Video4Linux devices
  52. REGISTER       v4l/.*       PERMISSIONS root.video 660
  53. # ALSA/OSS stuff
  54. # Comment/change these if you want to change the permissions on
  55. # the audio devices
  56. LOOKUP          snd          MODLOAD ACTION snd
  57. LOOKUP          dsp          MODLOAD
  58. LOOKUP          mixer        MODLOAD
  59. LOOKUP          midi         MODLOAD
  60. REGISTER        sound/.*     PERMISSIONS root.audio 660
  61. REGISTER        snd/.*       PERMISSIONS root.audio 660
  62. # Uncomment this to let PAM manage devfs
  63. #REGISTER        .*           CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath
  64. # Autoload the sg module if generic scsi driver compiled as module.
  65. #LOOKUP          ^sg$      MODLOAD ACTION sg
  66. # Give the cdrw group write permissions to /dev/sg0
  67. # This is done to have non root user use the burner (scan the scsi bus)
  68. #REGISTER        ^scsi/host.*/bus.*/target.*/lun.*/generic    PERMISSIONS root.cdrw 660
  69. # General note for the following auto creation of symlinks:
  70. #
  71. #    If you change the device that the symlink points to,
  72. #    you should also remove the symlink before restarting
  73. #    devfsd
  74. # Create /dev/cdrom for the first cdrom drive
  75. LOOKUP          ^cdrom$          CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdrom
  76. REGISTER        ^cdroms/cdrom0$   CFUNCTION GLOBAL mksymlink $devname cdrom
  77. UNREGISTER      ^cdroms/cdrom0$   CFUNCTION GLOBAL unlink cdrom
  78. # Create /dev/dvd for the second cdrom drive
  79. # (change 'cdroms/cdrom1' to suite your setup)
  80. # NOTE: We add the fully qualified path here, else some apps
  81. #       have problems to resolve the true device (drip comes to mind)
  82. #LOOKUP          ^dvd$           CFUNCTION GLOBAL mksymlink ${mntpnt}/cdroms/cdrom1 dvd
  83. #REGISTER        ^cdroms/cdrom1$  CFUNCTION GLOBAL mksymlink ${devpath} dvd
  84. #UNREGISTER      ^cdroms/cdrom1$  CFUNCTION GLOBAL unlink dvd
  85. # Create /dev/cdrw for the first cdrom on the scsi bus
  86. # (change 'sr0' to suite your setup)
  87. #LOOKUP          ^cdrw$          CFUNCTION GLOBAL mksymlink sr0 cdrw
  88. #REGISTER        ^sr0$           CFUNCTION GLOBAL mksymlink $devname cdrw
  89. #UNREGISTER      ^sr0$           CFUNCTION GLOBAL unlink cdrw
  90. # Create /dev/mouse
  91. LOOKUP          ^mouse$          CFUNCTION GLOBAL mksymlink misc/psaux mouse
  92. REGISTER        ^misc/psaux$     CFUNCTION GLOBAL mksymlink $devname mouse
  93. UNREGISTER      ^misc/psaux$     CFUNCTION GLOBAL unlink mouse
  94. # Manage USB mouse
  95. REGISTER        ^input/mouse0$   CFUNCTION GLOBAL mksymlink $devname usbmouse
  96. UNREGISTER      ^input/mouse0$   CFUNCTION GLOBAL unlink usbmouse
  97. REGISTER        ^input/mice$     CFUNCTION GLOBAL mksymlink $devname usbmouse
  98. UNREGISTER      ^input/mice$     CFUNCTION GLOBAL unlink usbmouse
  99. # Support additional config installed by packages ...
  100. INCLUDE /etc/devfs.d
  101. # devfsd.conf ends here


 
je sais pas trop koi mettre la je fais au pif ? je teste comment ? :D fo pas rebooter à chaque fois non ?


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Hardware

  [gentoo] ptit probleme devfs =$

 

Sujets relatifs
probleme winex[Résolu] Problème Iptables
Gentoo : cdrtools compile pas && Un parseur de logs pour apache ?Problème drivers ou autres avec carte son VIA + SB Live! sous MDK 9.1
[Gentoo] un probleme tres chiantProblème de configuration du kernel avec un Dell i8200
gentoo & rp-pppoe[Gentoo] Chti probleme pour changer l'heure
Plus de sujets relatifs à : [gentoo] ptit probleme devfs =$


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR