[OpenWrt-Devel] OpenWrt /etc/hotplug.d/button/00-wps
John kerry
kerry9842 at gmail.com
Wed Sep 16 06:14:32 EDT 2015
Hi,
I am getting below log:
Sep 16 10:10:07 ST-MA_WIFI user.notice root: ACTION='released'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: BUTTON='lanwifi'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_APPEND=''
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_LIST_STATE='ntp_server'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_NUM_SECTIONS='3'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_SECTION='led_usb'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_SECTIONS='cfg02e48a ntp
led_usb'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_cfg02e48a_TYPE='system'
Sep 16 10:10:07 ST-MA_WIFI user.notice root:
CONFIG_cfg02e48a_hostname='MA_WIFI'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_cfg02e48a_timezone='UTC'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_led_usb_TYPE='led'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_led_usb_dev='1-1'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_led_usb_interval='50'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_led_usb_name='USB'
Sep 16 10:10:07 ST-MA_WIFI user.notice root:
CONFIG_led_usb_sysfs='db120:green:usb'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_led_usb_trigger='usbdev'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_ntp_TYPE='timeserver'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_ntp_enable_server='0'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_ntp_server='
0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org
3.openwrt.pool.ntp.org'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_ntp_server_ITEM1='
0.openwrt.pool.ntp.org'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_ntp_server_ITEM2='
1.openwrt.pool.ntp.org'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_ntp_server_ITEM3='
2.openwrt.pool.ntp.org'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_ntp_server_ITEM4='
3.openwrt.pool.ntp.org'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: CONFIG_ntp_server_LENGTH='4'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: HOME='/'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: HOTPLUG_TYPE='button'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: IFS='
Sep 16 10:10:07 ST-MA_WIFI user.notice root: '
Sep 16 10:10:07 ST-MA_WIFI user.notice root: LIST_SEP=' '
Sep 16 10:10:07 ST-MA_WIFI user.notice root: LOAD_STATE='1'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: LOGNAME='root'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: N='
Sep 16 10:10:07 ST-MA_WIFI user.notice root: '
Sep 16 10:10:07 ST-MA_WIFI user.notice root: NO_EXPORT='1'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: OLDPWD='/'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: OPTIND='1'
Sep 16 10:10:07 ST-MA_WIFI user.notice root:
PATH='/bin:/sbin:/usr/bin:/usr/sbin'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: PPID='1964'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: PS1='\w \$ '
Sep 16 10:10:07 ST-MA_WIFI user.notice root: PS2='> '
Sep 16 10:10:07 ST-MA_WIFI user.notice root: PS4='+ '
Sep 16 10:10:07 ST-MA_WIFI user.notice root: PWD='/etc/modules.d'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: SEEN='73'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: SEQNUM='667'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: SHELL='/bin/sh'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: SUBSYSTEM='button'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: TERM='vt102'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: USER='root'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: _C='0'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: buffersize=''
Sep 16 10:10:07 ST-MA_WIFI user.notice root: foreground='0'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: klogconloglevel=''
Sep 16 10:10:07 ST-MA_WIFI user.notice root:
script='/etc/hotplug.d/button/50-wps'
Sep 16 10:10:07 ST-MA_WIFI user.notice root: zonename=''
Sep 16 10:10:09 ST-MA_WIFI user.notice root: ACTION='pressed'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: BUTTON='lanwifi'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_APPEND=''
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_LIST_STATE='ntp_server'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_NUM_SECTIONS='3'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_SECTION='led_usb'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_SECTIONS='cfg02e48a ntp
led_usb'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_cfg02e48a_TYPE='system'
Sep 16 10:10:09 ST-MA_WIFI user.notice root:
CONFIG_cfg02e48a_hostname='MA_WIFI'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_cfg02e48a_timezone='UTC'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_led_usb_TYPE='led'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_led_usb_dev='1-1'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_led_usb_interval='50'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_led_usb_name='USB'
Sep 16 10:10:09 ST-MA_WIFI user.notice root:
CONFIG_led_usb_sysfs='db120:green:usb'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_led_usb_trigger='usbdev'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_ntp_TYPE='timeserver'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_ntp_enable_server='0'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_ntp_server='
0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org
3.openwrt.pool.ntp.org'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_ntp_server_ITEM1='
0.openwrt.pool.ntp.org'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_ntp_server_ITEM2='
1.openwrt.pool.ntp.org'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_ntp_server_ITEM3='
2.openwrt.pool.ntp.org'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_ntp_server_ITEM4='
3.openwrt.pool.ntp.org'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: CONFIG_ntp_server_LENGTH='4'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: HOME='/'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: HOTPLUG_TYPE='button'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: IFS='
Sep 16 10:10:09 ST-MA_WIFI user.notice root: '
Sep 16 10:10:09 ST-MA_WIFI user.notice root: LIST_SEP=' '
Sep 16 10:10:09 ST-MA_WIFI user.notice root: LOAD_STATE='1'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: LOGNAME='root'
Sep 16 10:10:09 ST-MA_WIFI user.notice root: N='
Sep 16 10:10:09 ST-MA_WIFI user.notice root: '
Sep 16 10:10:09 ST-MA_WIFI user.notice root: NO_EXPORT='1'
Regards,
John
On Wed, Sep 16, 2015 at 5:37 PM, Bastian Bittorf <bittorf at bluebottle.com>
wrote:
> * John kerry <kerry9842 at gmail.com> [16.09.2015 11:32]:
> > even i checked on http://www.shellcheck.net/ , its not giving any
> feedback,
> > it seems correct but still its not working.
>
> add 1 line on top of your script for debugging:
>
> set | logger
>
> and check with 'logread -f' the output when you press the button.
>
> bye, bastian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150916/759a59d2/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list