BackupGGCode / wl500g

ASUS WL-5xx RT-N1x Oleg's based custom firmware
0 stars 0 forks source link

nvram variables printer_model_t and printer_status_t are being set only after entering to web-face #348

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Boot the router.
2. Switch on printer and connect it to router.
3. Start ssh client and enter the command
"nvram get printer_model_t"
and be convinced, that there is an empty value.
4. Enter to the WEB interface of the router.
5. In the ssh client enter the previous command and be convinced that now the 
variable "printer_model_t" has value corresponding to the connected printer.

What is the expected output? What do you see instead?
Printer model as the value of the variable "printer_model_t" is expected. I see 
empty value before entering web interface.

What version of the product are you using?
WL500gpv2-1.9.2.7-rtn-r4536M.trx

Please provide any additional information below.

Original issue reported on code.google.com by dwg.gal...@gmail.com on 30 Aug 2012 at 10:55

GoogleCodeExporter commented 9 years ago
It is expected behavior, this variables are set up by httpd only. They are not 
intended to use in any external software.

You have to manually parse /proc/bus/usb/devices or issue ioctl call on 
/dev/lp0 devicefile.

Original comment by lly.dev on 30 Aug 2012 at 12:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
OK, I analyze the content of /proc/bus/usb/devices (see my, MrGalaxy's, post 
here: 
http://wl500g.info/showthread.php?13847-%CA%E0%EA-%EF%EE%E4%F0%F3%E6%E8%F2%FC-%E
F%F0%E8%ED%F2%E5%F0-HPLJ-P1005-1022-%E8-%F0%EE%F3%F2%E5%F0-Asus&p=254402#post254
402 ).
But is the path /proc/bus/usb of file "devices" universal, independent of shell 
version? 

Original comment by dwg.gal...@gmail.com on 3 Sep 2012 at 12:04