site  contact  subhomenews

Pnethood cifs fix

August 10, 2009 — BarryK
Forum member puppymike reported a fix to get cifs to work with Pnethood, by executing this:
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

What I needed to know is when and where do I implement this. I looked in the Pnethood package (version 0.65-utf8). The script /usr/local/apps/pnethood/pnethood has a line 'modprobe cifs' and when this executes, the directory 'cifs' with all its contents appears in '/proc/fs/cifs'.

So, I have put this into 'pnethood':

modprobe cifs

[ "$PROGPATH" = "." ] && PROGPATH="`pwd`"
mkdir -p "${HOME}/.pnethood/"
mkdir -p $TMP
touch "${HOME}/.pnethood/passwords"

[ `which $FILER` ] || echo rox not found show button will not work
[ `which rxvt` ] || echo rxvt not found info button will not work
[ `which nbtscan` ] || echo nbtscan not found pnethood will not work
[ `which smbclient` ] || echo smbclient not found pnethood will not work
[ `which smbmount` ] && echo smb mounting enabled
if [ "$(lsmod | grep cifs)" ]; then
echo cifs mounting enabled

#v423 BK: puppymike says need this to get cifs to work...
sleep 0.5
[ ! -e /proc/fs/cifs ] && sleep 1 #BK i have put these sleeps as it was slow to appear
[ ! -e /proc/fs/cifs ] && sleep 1 # after i ran 'modprobe cifs'
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

[ `which smbmount` ] || echo no cifs support and smbmount not found pnethood will not work

The package is now named '' and I will upload it to ibiblio soon.


Thanks Barry
Username: puppymike
Ok I will try to test it once you announce its been uploaded. Rgds Mike

Tags: woof