[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

devfsd question



Is it possible to have devfsd perform multiple actions when a device is
registered?  For example, I want two things to occur when /dev/tts/0
is created... set the ownership/permissions, and create a /dev/ups
symlink.  My original attempt used the following two entries:

   REGISTER ^tts/0$ CFUNCTION GLOBAL symlink tts/0 ups
   REGISTER ^tts/0$ PERMISSIONS root.nut 0660

This results in the symlink being created, but the permissions are
skipped.  Combining them into a single entry doesn't work either:

   REGISTER ^tts/0$ PERMISSIONS root.nut 0660 CFUNCTION GLOBAL symlink
tts/0 ups

In this case the permissions are set, but the symlink is skipped.  Any
suggestions?

Attachment: pgpF59SDlYatM.pgp
Description: PGP signature


Reply to: