Thank you, very much. So, I checked polling and it seems to be working (twice per second):
$this->bbcode_second_pass_code('', '
cat /sys/module/block/parameters/events_dfl_poll_msecs
')returned "2000". Then, I did the
$this->bbcode_second_pass_code('', '
pacman -Sy udevil
systemctl enable devmon@root.service
systemctl start devmon@root.service
') and $this->bbcode_second_pass_code('', '[root@PPWEB ~]# systemctl status devmon@root.service
devmon@root.service - devmon Service
Loaded: loaded (/usr/lib/systemd/system/devmon@.service; enabled)
Active: active (running) since Wed, 1969-12-31 18:00:17 CST; 43 years and 0 months ago
Main PID: 124 (devmon)
CGroup: name=systemd:/system/devmon@.service/root
tq124 /bin/bash /usr/bin/devmon
mq325 /usr/bin/udevil --monitor')
Cool, it seems like devmon has been running since I was in kindergarten!
In between I had a scare - after a reboot, the device was stuck (no light) and only after powering everything off (including the external drive) it came back to life. But the problem is, I don't see where the mount point is, there is no /media directory and even though the status light on my USB flash drive (FAT 32) indicates it is connected, I can't see it anywhere. Here's the root listing:
$this->bbcode_second_pass_code('', '[root@PPWEB /]# ls -la
total 1049672
drwxr-xr-x 19 root root 4096 Jan 16 08:26 .
drwxr-xr-x 19 root root 4096 Jan 16 08:26 ..
drwxr-xr-x 2 root root 4096 Jan 15 14:58 bin
drwxr-xr-x 2 root root 4096 Jan 15 14:58 boot
drwxr-xr-x 14 root root 3940 Dec 31 1969 dev
drwxr-xr-x 45 root root 4096 Jan 16 08:36 etc
drwxr-xr-x 2 root root 4096 Dec 6 10:52 home
lrwxrwxrwx 1 root root 7 Dec 31 00:14 lib -> usr/lib
drwx------ 2 root root 16384 Jan 15 14:35 lost+found
drwxr-xr-x 2 root root 4096 Dec 6 10:52 mnt
drwxr-xr-x 2 root root 4096 Dec 6 10:52 opt
dr-xr-xr-x 57 root root 0 Dec 31 1969 proc
drwxr-x--- 2 root root 4096 Jan 15 15:01 root
drwxr-xr-x 17 root root 480 Dec 31 1969 run
drwxr-xr-x 2 root root 4096 Jan 15 14:59 sbin
drwxr-xr-x 4 root root 4096 Dec 6 10:52 srv
-rw-r--r-- 1 root root 1073741824 Jan 16 08:28 swapfile.img
drwxr-xr-x 12 root root 0 Dec 31 1969 sys
drwxrwxrwt 7 root root 140 Dec 31 1969 tmp
drwxr-xr-x 9 root root 4096 Jan 15 14:58 usr
drwxr-xr-x 12 root root 4096 Jan 15 14:58 var
[root@PPWEB /]#')
Not much info about configuring devmon or udevil that I could find.
Any thoughts?
Kamen