From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Mon, 1 Mar 2010 15:27:08 +0800 References: <201002280430.09575.lindner_marek@yahoo.de> <1267302649-22040-2-git-send-email-lindner_marek@yahoo.de> <20100301015103.GA6602@Linus-Debian> In-Reply-To: <20100301015103.GA6602@Linus-Debian> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003011527.08635.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 2/2] batctl: follow /proc to sysfs conversion & introduce input validation Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking Hey, > I like :). This already looks well structured for introducing more > than one bat-interface later. glad to hear that! :) > Just noticed, that I don't have this /sys/devices/virtual folder > on my Debian stable VM. But I think we should be on the safe side > to use > #define SYS_BATIF_PATH "/sys/class/net/bat0/mesh/" > instead, they look equivalent and I'm having them both avaiable on > Debian stable (2.6.26 kernel) and Debian unstable (2.6.32 kernel). The path "/sys/class" simply contains symlinks to the real paths. On my OpenWRT it looks like this: ls -l /sys/class/net/ bat0 -> ../../devices/virtual/net/bat0 br-lan -> ../../devices/virtual/net/br-lan lo -> ../../devices/virtual/net/lo If the virtual path does not exist on your debian where does the symlink point to ? Btw, on my debian (2.6.32) the virtual path exists but we use /sys/class/net instead to be on the safe side. Regards, Marek