Reputation
217
Top tag
Next privilege 250 Rep.
View close votes
Badges
3 9
Newest
 Necromancer
Impact
~46k people reached

May
24
comment Monitor /sys partition for changes
Mikel, I use inotifywait from inotify-tools. Can you try this in a laptop? inotifywait -m /sys/class/power_supply/BAT0/status. I get I don't get any event when this value changes (unplug/plug the battery).
May
23
comment Monitor /sys partition for changes
I think we can safely assume the OP was working from a shell and he wasn't talking about C functions. Anyway, currently it's still not working for me in /sys files (Linux 3.6.3), I only get OPEN/ACCESS events, but not changes made by the kernel.
Jan
12
comment disable cd/dvd button on linux laptop (ubuntu)
Note that sudo command > file won't work, you need something like echo 1 | sudo tee /proc/sys/dev/cdrom/lock.
May
25
comment Test if element is in array in bash
note that if ! some_check then return 1 = some_check. So: isNotSet() { [[ ... ]] }. Check my solution below, you can do it in a simple check.
May
25
comment Test if element is in array in bash
Some posts about set -u: davidpashley.com/articles/writing-robust-shell-scripts.html, blog.hashbang0.com/2010/05/18/robust-bash-scripts-part-one, openews.net/2012/bash-script-to-write-robust.
May
25
comment Test if element is in array in bash
@DennisWilliamson: Ok, some people recommend it, but I think it would be nice to have a solution that works regardless the value of these flags.
May
25
comment Test if element is in array in bash
${array[$test1]} is simple but has a problem: it won't work if you use set -u in your scripts (which is recommended), as you'd get "unbound variable".
Aug
10
comment Broken UTF-8 display in XFCE terminal after upgrade to 4.8
but if you rename the .config directory don't you lost all your old configuration?
Jul
7
comment Use standard USB network device as Access Point
ok, then I guess there is no way. I had the hope that somehow we could use a device in ad-hoc mode as AP (I know, there is an infrastructure mode -master- for that).
Jul
7
comment Use standard USB network device as Access Point
added the model of the USB device on the question.
Jul
7
comment Use standard USB network device as Access Point
it's a USB WiFi device, not a router.
Jul
7
comment Use standard USB network device as Access Point
the interface supports managed and ad-hoc. That was the question, can I build something similar to an AP in ad-hoc mode?