what triggers "USB script" under Admin, Commands?

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Tue Jun 29, 2021 16:49    Post subject: what triggers "USB script" under Admin, Commands? Reply with quote
I assumed it was to run some commands when a USB device is connected, but what I found seems strange:

I added a command to echo a message to the serial console into this USB script. During bootup I saw my message flash five times, the first one well before the kernel even initialized the USB subsystem.

whats actually triggering this script to run?

(I'm running v3.0-r46885 on an EA8500, but I'm posting to the General Forum because I have no way of knowing if this behavior is specific to Qualcom hardware.)

Thanks.
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Tue Jun 29, 2021 17:31    Post subject: Reply with quote
Added in build 06-10-2020-r43381 (but not noted in build release threads?):
Quote:
add usb script which will be executed at hotplug (after device is mounted)

https://svn.dd-wrt.com/search?q=usb+script

https://svn.dd-wrt.com/log/src?rev=43381&stop_rev=43335

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=325331

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=325332

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=325333

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=325334

This must've been before someone prompted us to start adding threads in the x86 forum. Anyhow, hotplug detects the device, device is mounted, and then the usb script is s'posed to run as best I understand it without digging into the code further than I already have.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Tue Jun 29, 2021 19:58    Post subject: Reply with quote
kernel-panic69 wrote:
hotplug detects the device, device is mounted, and then the usb script is s'posed to run


ok, so help me understand the correct etiquette here. should I post this to the new-build thread, submit it to SVN with the BugTracker, or both?

thanks!
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Tue Jun 29, 2021 20:22    Post subject: Reply with quote
You could probably just post the actual details and discussion right here in this thread so we can actually see what is going on and if it's a bug or not that needs to be reported. Quite honestly, there is a lot of tickets that get opened on Trac that don't get any attention unless someone emails BrainSlayer about them more often than not and people don't seem to get this.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Tue Jun 29, 2021 20:42    Post subject: Reply with quote
i attached a screenshot of what I put in the USB script, and also attached the dmesg kernel log.

Its executing the script around 15 seconds, before the usbcore even loads.

It then executes it twice right before sda1 actually gets mounted, and then twice more right after.



USB script setup.jpg
 Description:
 Filesize:  17.96 KB
 Viewed:  2230 Time(s)

USB script setup.jpg



dmesg.txt
 Description:

Download
 Filename:  dmesg.txt
 Filesize:  27.42 KB
 Downloaded:  101 Time(s)

kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Tue Jun 29, 2021 22:40    Post subject: Reply with quote
Have you tried echoing that to /proc/kmsg or other logging facility or using a different method to print to the log to see if it does the same thing?

https://unix.stackexchange.com/questions/585919/what-is-the-difference-between-proc-kmsg-and-dev-kmsg

https://stackoverflow.com/questions/28235333/what-is-the-difference-between-proc-kmsg-and-dmsg/28247699

https://unix.stackexchange.com/questions/503059/writing-to-dev-kmsg-randomly-shows-up-in-proc-kmsg-and-always-in-dmesg

https://unix.stackexchange.com/questions/205883/understand-logging-in-linux

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Wed Jun 30, 2021 3:19    Post subject: Reply with quote
I changed the USB Script to /proc/kmsg from /dev/kmsg, but then nothing showed up at all. (I then tried echoing to /proc/kmsg directly from the command line and got a "Write error: I/O error")

I did originally have the USB script echoing to /dev/console and watching the results in hyperterminal. There werent timestamps on everything like with dmesg, but I definitely saw 5 occurences, and they were spaced apart similarly to what is shown in the kernel log.
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1447
Location: Appalachian mountains, USA

PostPosted: Wed Jun 30, 2021 3:37    Post subject: Reply with quote
try the logger command. should be easy to google the man page. Or just try these by hand in the CLI and then look at the syslog:

echo 'This is a message' | logger -t 'the originator'

logger <<'EOF' -t 'the ultimate loginator!'
This is a multi-line
message that will likely
make an ugly log entry.
EOF

_________________
2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Wed Jun 30, 2021 13:15    Post subject: Reply with quote
ok, I tried the logger command. Here is an excerpt from the syslog. It indicates the same behavior, being executed 5 times.

Code:
Jan  1 01:00:29 ea8500 kern.info kernel: [   29.847617] br0: port 3(wlan1) entered blocking state
Jan  1 01:00:29 ea8500 kern.info kernel: [   29.847640] br0: port 3(wlan1) entered forwarding state
Jan  1 01:00:29 ea8500 user.info : bridge : interface wlan1 successfully added to bridge br0
Jan  1 01:00:30 ea8500 kern.info kernel: [   30.053269] device vlan2 entered promiscuous mode
Jan  1 01:00:30 ea8500 user.info : klogd : kernel log daemon successfully stopped
Jan  1 01:00:30 ea8500 user.info : sfe : shortcut forwarding engine successfully stopped
Jan  1 01:00:30 ea8500 user.info : hwmon : successfully started
Jan  1 01:00:30 ea8500 kern.notice kernel: klogd: exiting
Jan  1 01:00:30 ea8500 user.info : telnetd : daemon successfully started
Jan  1 01:00:30 ea8500 daemon.info smartd[1134]: smartd 7.2 2020-12-30 r5155 [armv7l-linux-4.9.271] (local build)
Jan  1 01:00:30 ea8500 daemon.info smartd[1134]: Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Jan  1 01:00:30 ea8500 daemon.info smartd[1134]: Opened configuration file /usr/etc/smartd.conf
Jan  1 01:00:30 ea8500 daemon.info smartd[1134]: Drive: DEVICESCAN, implied '-a' Directive on line 32 of file /usr/etc/smartd.conf
Jan  1 01:00:30 ea8500 daemon.info smartd[1134]: Configuration file /usr/etc/smartd.conf was parsed, found DEVICESCAN, scanning devices
Jan  1 01:00:30 ea8500 daemon.crit smartd[1134]: In the system's table of devices NO devices found to scan
Jan  1 01:00:30 ea8500 daemon.info smartd[1134]: Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting...
Jan  1 01:00:30 ea8500 user.info : syslogd : syslog daemon successfully stopped
Jan  1 01:00:30 ea8500 syslog.info syslogd exiting
Jan  1 01:00:30 ea8500 syslog.info syslogd started: BusyBox v1.33.1
Jan  1 01:00:30 ea8500 user.info : klogd : daemon successfully started
Jan  1 01:00:30 ea8500 kern.notice kernel: klogd started: BusyBox v1.33.1 (2021-06-05 01:51:02 +07)
Jan  1 01:00:30 ea8500 user.info : proftpd : server successfully started
Jan  1 01:00:30 ea8500 user.notice root:  ---------------------------   USB SCRIPT HAS STARTED!!! --------
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: started, version 2.85 cachesize 1500
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua no-TFTP no-conntrack ipset no-auth cryptohash DNSSEC loop-detect no-inotify no-dumpfile
Jan  1 01:00:30 ea8500 daemon.info dnsmasq-dhcp[1217]: DHCP, IP range 192.168.1.120 -- 192.168.1.169, lease time 1d
Jan  1 01:00:30 ea8500 user.info : dnsmasq : daemon successfully started
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: using only locally-known addresses for domain test
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: using only locally-known addresses for domain onion
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: using only locally-known addresses for domain localhost
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: using only locally-known addresses for domain local
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: using only locally-known addresses for domain invalid
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: using only locally-known addresses for domain bind
Jan  1 01:00:30 ea8500 daemon.warn dnsmasq[1217]: no servers found in /tmp/resolv.dnsmasq, will retry
Jan  1 01:00:30 ea8500 daemon.info dnsmasq[1217]: read /etc/hosts - 7 addresses
Jan  1 01:00:31 ea8500 user.info : sfe : shortcut forwarding engine successfully started
Jan  1 01:00:31 ea8500 kern.alert kernel: [   31.404381] fast-classifier (PBR safe v2.1.6b): starting up
Jan  1 01:00:31 ea8500 kern.alert kernel: [   31.404467] fast-classifier: registered
Jan  1 01:00:31 ea8500 kern.info kernel: [   31.551319] Linux kernel CIFS/SMB SERVER 3.3.9 by Namjae Jeon <linkinjeon@kernel.org>
Jan  1 01:00:31 ea8500 user.info wsdd2[1316]: starting.
Jan  1 01:00:31 ea8500 user.info : smbd : samba started
Jan  1 01:00:31 ea8500 user.err wsdd2[1316]: error: wsdd-mcast-v4: wsd_send_soap_msg: send: Network unreachable
Jan  1 01:00:31 ea8500 local5.err ksmbd: [ksmbd-manager/1320]: ERROR: Can't open `/tmp/ksmbd.subauth': No such file or directory
Jan  1 01:00:31 ea8500 local5.info ksmbd: [ksmbd-worker/1321]: INFO: User already exists nobody
Jan  1 01:00:31 ea8500 kern.info kernel: [   31.640066] ip6_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 01:00:31 ea8500 user.info : sfe : shortcut forwarding engine successfully started
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.016811] device vlan2 left promiscuous mode
Jan  1 01:00:32 ea8500 user.info : ttraff : traffic counter daemon successfully started
Jan  1 01:00:32 ea8500 user.info : httpd : daemon successfully stopped
Jan  1 01:00:32 ea8500 user.info : httpd : http daemon successfully started
Jan  1 01:00:32 ea8500 daemon.info httpd[1452]: httpd : httpd server started at port 80
Jan  1 01:00:32 ea8500 user.info : httpd : http daemon successfully started
Jan  1 01:00:32 ea8500 user.info : resetbutton : daemon successfully stopped
Jan  1 01:00:32 ea8500 user.info : resetbutton : resetbutton daemon successfully started
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.357920] usbcore: registered new interface driver usbfs
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.358013] usbcore: registered new interface driver hub
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.362433] usbcore: registered new device driver usb
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.396716] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.404139] ehci-platform: EHCI generic platform driver
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.422579] ehci-pci: EHCI PCI platform driver
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.502635] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.861393] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.861474] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.866024] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x02010010
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.873469] xhci-hcd xhci-hcd.0.auto: irq 202, io mem 0x11000000
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.882678] hub 1-0:1.0: USB hub found
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.888629] hub 1-0:1.0: 1 port detected
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.892121] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.895920] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.901367] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.909465] hub 2-0:1.0: USB hub found
Jan  1 01:00:32 ea8500 kern.info kernel: [   32.917467] hub 2-0:1.0: 1 port detected
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.005490] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.005540] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.010132] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x02010010
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.017460] xhci-hcd xhci-hcd.1.auto: irq 203, io mem 0x10000000
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.028289] hub 3-0:1.0: USB hub found
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.035165] hub 3-0:1.0: 1 port detected
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.037976] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.040105] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.045503] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.054089] hub 4-0:1.0: USB hub found
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.068204] hub 4-0:1.0: 1 port detected
Jan  1 01:00:33 ea8500 kern.info kernel: [   33.169435] usb 1-1: new high-speed USB device number 2 using xhci-hcd
Jan  1 01:00:33 ea8500 kern.alert kernel: [   33.222289] fast-classifier: shutting down
Jan  1 01:00:33 ea8500 user.info : sfe : shortcut forwarding engine successfully stopped
Jan  1 01:00:33 ea8500 kern.alert kernel: [   33.396914] fast-classifier (PBR safe v2.1.6b): starting up
Jan  1 01:00:33 ea8500 kern.alert kernel: [   33.396999] fast-classifier: registered
Jan  1 01:00:33 ea8500 user.info : sfe : shortcut forwarding engine successfully started
Jan  1 01:00:33 ea8500 user.err wsdd2[1316]: error: wsdd-mcast-v4: wsd_send_soap_msg: send: Network unreachable
Jan  1 01:00:33 ea8500 user.err wsdd2[1316]: error: wsdd-mcast-v4: wsd_send_soap_msg: send: Network unreachable
Jan  1 01:00:33 ea8500 user.info : wland : daemon successfully stopped
Jan  1 01:00:33 ea8500 user.info : wland : daemon successfully started
Jan  1 01:00:33 ea8500 user.info : wan : WAN is up. IP: 96.245.165.18
Jan  1 01:00:33 ea8500 user.info : dnsmasq : daemon successfully stopped
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1217]: exiting on receipt of SIGTERM
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: started, version 2.85 cachesize 1500
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua no-TFTP no-conntrack ipset no-auth cryptohash DNSSEC loop-detect no-inotify no-dumpfile
Jan  1 01:00:33 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCP, IP range 192.168.1.120 -- 192.168.1.169, lease time 1d
Jan  1 01:00:33 ea8500 user.info : dnsmasq : daemon successfully started
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain test
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain onion
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain localhost
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain local
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain invalid
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain bind
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: reading /tmp/resolv.dnsmasq
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain test
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain onion
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain localhost
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain local
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain invalid
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain bind
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using nameserver 71.242.0.12#53
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: using nameserver 71.250.0.12#53
Jan  1 01:00:33 ea8500 daemon.info dnsmasq[1712]: read /etc/hosts - 7 addresses
Jan  1 01:00:33 ea8500 kern.alert kernel: [   33.962782] fast-classifier: shutting down
Jan  1 01:00:34 ea8500 user.info : sfe : shortcut forwarding engine successfully stopped
Jan  1 01:00:34 ea8500 user.info : vpn modules : vpn modules successfully unloaded
Jan  1 01:00:34 ea8500 user.info : vpn modules : nf_conntrack_proto_gre successfully loaded
Jan  1 01:00:34 ea8500 user.info : vpn modules : nf_nat_proto_gre successfully loaded
Jan  1 01:00:34 ea8500 user.info : vpn modules : nf_conntrack_pptp successfully loaded
Jan  1 01:00:34 ea8500 user.info : vpn modules : nf_nat_pptp successfully loaded
Jan  1 01:00:34 ea8500 kern.alert kernel: [   34.828952] fast-classifier (PBR safe v2.1.6b): starting up
Jan  1 01:00:34 ea8500 kern.alert kernel: [   34.829032] fast-classifier: registered
Jan  1 01:00:34 ea8500 user.info : sfe : shortcut forwarding engine successfully started
Jan  1 01:00:35 ea8500 user.info : sfe : shortcut forwarding engine successfully started
Jan  1 01:00:35 ea8500 user.info : process_monitor : successfully started
Jan  1 01:00:35 ea8500 daemon.debug ntpclient[1949]: Connecting to 2.pool.ntp.org [67.205.162.81] ...
Jun 30 15:01:31 ea8500 daemon.info ntpclient[1949]: Time set from 2.pool.ntp.org [67.205.162.81].
Jun 30 15:01:31 ea8500 daemon.info process_monitor[1948]: cyclic NTP Update success (servers 2.pool.ntp.org 212.18.3.19 88.99.174.22)
Jun 30 15:01:31 ea8500 kern.alert kernel: [   35.578530] fast-classifier: shutting down
Jun 30 15:01:31 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPDISCOVER(br0) REDACTED
Jun 30 15:01:31 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPOFFER(br0) REDACTED
Jun 30 15:01:31 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPREQUEST(br0) REDACTED
Jun 30 15:01:31 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPACK(br0) REDACTED
Jun 30 15:01:31 ea8500 user.info : sfe : shortcut forwarding engine successfully stopped
Jun 30 15:01:31 ea8500 kern.alert kernel: [   35.757160] fast-classifier (PBR safe v2.1.6b): starting up
Jun 30 15:01:31 ea8500 kern.alert kernel: [   35.757248] fast-classifier: registered
Jun 30 15:01:31 ea8500 user.info : sfe : shortcut forwarding engine successfully started
Jun 30 15:01:32 ea8500 kern.alert kernel: [   36.203312] fast-classifier: shutting down
Jun 30 15:01:32 ea8500 user.info : sfe : shortcut forwarding engine successfully stopped
Jun 30 15:01:32 ea8500 daemon.info hostapd: wlan0: STA REDACTED WPA: group key handshake completed (RSN)
Jun 30 15:01:33 ea8500 user.info : vpn modules : vpn modules successfully unloaded
Jun 30 15:01:33 ea8500 user.info : vpn modules : nf_conntrack_proto_gre successfully loaded
Jun 30 15:01:33 ea8500 user.info : vpn modules : nf_nat_proto_gre successfully loaded
Jun 30 15:01:33 ea8500 user.info : vpn modules : nf_conntrack_pptp successfully loaded
Jun 30 15:01:33 ea8500 user.info : vpn modules : nf_nat_pptp successfully loaded
Jun 30 15:01:33 ea8500 kern.alert kernel: [   37.356423] fast-classifier (PBR safe v2.1.6b): starting up
Jun 30 15:01:33 ea8500 kern.alert kernel: [   37.356505] fast-classifier: registered
Jun 30 15:01:33 ea8500 user.info : sfe : shortcut forwarding engine successfully started
Jun 30 15:01:33 ea8500 user.info : sfe : shortcut forwarding engine successfully started
Jun 30 15:01:33 ea8500 daemon.debug process_monitor[1948]: Restarting cron (time sync change)
Jun 30 15:01:34 ea8500 user.info : cron : daemon successfully stopped
Jun 30 15:01:34 ea8500 cron.info cron[2408]: (CRON) STARTUP (fork ok)
Jun 30 15:01:34 ea8500 user.info : cron : daemon successfully started
Jun 30 15:01:34 ea8500 user.info : process_monitor : daemon successfully stopped
Jun 30 15:01:34 ea8500 daemon.info process_monitor[1948]: process_monitor : cleanup timers
Jun 30 15:01:34 ea8500 daemon.debug process_monitor[2413]: We need to re-update after 3600 seconds
Jun 30 15:01:34 ea8500 daemon.info process_monitor[2413]: process_monitor : set timer: 3600 seconds, callback: ntp_main()
Jun 30 15:01:34 ea8500 user.info : process_monitor : successfully started
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.109865] xhci-hcd xhci-hcd.1.auto: remove, state 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.109902] usb usb4: USB disconnect, device number 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.114442] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.121799] xhci-hcd xhci-hcd.1.auto: remove, state 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.124742] usb usb3: USB disconnect, device number 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.130137] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.134702] xhci-hcd xhci-hcd.0.auto: remove, state 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.140486] usb usb2: USB disconnect, device number 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.145948] xhci-hcd xhci-hcd.0.auto: USB bus 2 deregistered
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.150487] xhci-hcd xhci-hcd.0.auto: remove, state 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.156138] usb usb1: USB disconnect, device number 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.161147] usb 1-1: USB disconnect, device number 2
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.168801] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.206293] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.206378] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.210991] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x02010010
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.218248] xhci-hcd xhci-hcd.0.auto: irq 202, io mem 0x11000000
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.227600] hub 1-0:1.0: USB hub found
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.233404] hub 1-0:1.0: 1 port detected
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.237200] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.241001] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.246196] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.254291] hub 2-0:1.0: USB hub found
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.262512] hub 2-0:1.0: 1 port detected
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.266032] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.269707] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.275238] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x02010010
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.282567] xhci-hcd xhci-hcd.1.auto: irq 203, io mem 0x10000000
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.292010] hub 3-0:1.0: USB hub found
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.297684] hub 3-0:1.0: 1 port detected
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.301598] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.305047] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.310520] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.318480] hub 4-0:1.0: USB hub found
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.326248] hub 4-0:1.0: 1 port detected
Jun 30 15:01:34 ea8500 kern.notice kernel: [   38.380972] SCSI subsystem initialized
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.482044] usbcore: registered new interface driver usb-storage
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.518244] usb 1-1: new high-speed USB device number 2 using xhci-hcd
Jun 30 15:01:34 ea8500 kern.debug kernel: [   38.539978] libata version 3.00 loaded.
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.599840] ahci 29000000.sata: forcing port_map 0x0 -> 0x1
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.599889] ahci 29000000.sata: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.604242] ahci 29000000.sata: flags: ncq sntf pm led clo only pmp pio slum part ccc apst
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.613740] scsi host0: ahci
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.621591] ata1: SATA max UDMA/133 mmio [mem 0x29000000-0x2900017f] port 0x100 irq 95
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.930672] usb-storage 1-1:1.0: USB Mass Storage device detected
Jun 30 15:01:34 ea8500 kern.info kernel: [   38.930885] scsi host1: usb-storage 1-1:1.0
Jun 30 15:01:35 ea8500 kern.info kernel: [   38.951989] ata1: SATA link down (SStatus 0 SControl 300)
Jun 30 15:01:35 ea8500 kern.info kernel: [   39.150728] sdhci: Secure Digital Host Controller Interface driver
Jun 30 15:01:35 ea8500 kern.info kernel: [   39.150754] sdhci: Copyright(c) Pierre Ossman
Jun 30 15:01:35 ea8500 kern.info kernel: [   39.163725] sdhci-pltfm: SDHCI platform and OF driver helper
Jun 30 15:01:43 ea8500 user.debug : ttraff: data collection started
Jun 30 15:01:46 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPDISCOVER(br0) REDACTED
Jun 30 15:01:46 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPOFFER(br0) REDACTED
Jun 30 15:01:46 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPREQUEST(br0) REDACTED
Jun 30 15:01:46 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPACK(br0) REDACTED
Jun 30 15:01:50 ea8500 kern.notice kernel: [   54.301085] scsi 1:0:0:0: Direct-Access     PNY      USB 2.0 FD       PMAP PQ: 0 ANSI: 4
Jun 30 15:01:50 ea8500 kern.notice kernel: [   54.303651] sd 1:0:0:0: [sda] 60628992 512-byte logical blocks: (31.0 GB/28.9 GiB)
Jun 30 15:01:50 ea8500 kern.notice kernel: [   54.309111] sd 1:0:0:0: [sda] Write Protect is off
Jun 30 15:01:50 ea8500 kern.debug kernel: [   54.315681] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
Jun 30 15:01:50 ea8500 kern.err kernel: [   54.316400] sd 1:0:0:0: [sda] No Caching mode page found
Jun 30 15:01:50 ea8500 kern.err kernel: [   54.320472] sd 1:0:0:0: [sda] Assuming drive cache: write through
Jun 30 15:01:50 ea8500 kern.info kernel: [   54.331508]  sda: sda1
Jun 30 15:01:50 ea8500 kern.notice kernel: [   54.335592] sd 1:0:0:0: [sda] Attached SCSI removable disk
Jun 30 15:01:50 ea8500 user.info : cron : daemon successfully stopped
Jun 30 15:01:50 ea8500 user.info : wsdd2 : windows service discovery daemon successfully stopped
Jun 30 15:01:50 ea8500 user.err wsdd2[1316]: Terminated received.
Jun 30 15:01:50 ea8500 user.info wsdd2[1316]: terminating.
Jun 30 15:01:50 ea8500 user.info : ksmbd.mountd : samba daemon successfully stopped
Jun 30 15:01:50 ea8500 local5.info ksmbd: [ksmbd-worker/1321]: INFO: Child received signal: 15 (Terminated)
Jun 30 15:01:50 ea8500 local5.err ksmbd: [ksmbd-manager/1320]: ERROR: can't execute kill 1321: No such process
Jun 30 15:01:50 ea8500 local5.info ksmbd: [ksmbd-manager/1320]: INFO: Exiting. Bye!
Jun 30 15:01:50 ea8500 kern.info kernel: [   54.403104] ksmbd: kill command received
Jun 30 15:01:50 ea8500 user.info : proftpd : FTP Server successfully stopped
Jun 30 15:01:51 ea8500 kern.warn kernel: [   55.138116] EXT4-fs (sda1): Ignoring removed nobh option
Jun 30 15:01:51 ea8500 kern.info kernel: [   55.186786] EXT4-fs (sda1): barriers disabled
Jun 30 15:01:51 ea8500 user.info : cron : daemon successfully started
Jun 30 15:01:51 ea8500 cron.info cron[2625]: (CRON) STARTUP (fork ok)
Jun 30 15:01:51 ea8500 kern.info kernel: [   55.725830] Linux kernel CIFS/SMB SERVER 3.3.9 by Namjae Jeon <linkinjeon@kernel.org>
Jun 30 15:01:51 ea8500 user.info wsdd2[2684]: starting.
Jun 30 15:01:51 ea8500 user.info : smbd : samba started
Jun 30 15:01:51 ea8500 local5.info ksmbd: [ksmbd-worker/2688]: INFO: User already exists nobody
Jun 30 15:01:51 ea8500 user.info : proftpd : server successfully started
Jun 30 15:01:51 ea8500 user.notice root:  ---------------------------   USB SCRIPT HAS STARTED!!! --------
Jun 30 15:01:51 ea8500 user.notice root:  ---------------------------   USB SCRIPT HAS STARTED!!! --------
Jun 30 15:01:52 ea8500 kern.info kernel: [   56.347461] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: init_itable=0,nobarrier,nobh,barrier=0
Jun 30 15:01:55 ea8500 user.info : cron : daemon successfully stopped
Jun 30 15:01:55 ea8500 user.info : cron : daemon successfully started
Jun 30 15:01:55 ea8500 cron.info cron[2738]: (CRON) STARTUP (fork ok)
Jun 30 15:01:55 ea8500 user.info wsdd2[2797]: starting.
Jun 30 15:01:55 ea8500 user.info : smbd : samba started
Jun 30 15:01:55 ea8500 local5.info ksmbd: [ksmbd-manager/2800]: INFO: File '/tmp/ksmbd.lock' belongs to pid 2687
Jun 30 15:01:55 ea8500 local5.err ksmbd: [ksmbd-manager/2800]: ERROR: Failed to create lock file: File exists
Jun 30 15:01:55 ea8500 local5.info ksmbd: [ksmbd-manager/2800]: INFO: Exiting. Bye!
Jun 30 15:01:55 ea8500 user.info : proftpd : FTP Server successfully stopped
Jun 30 15:01:55 ea8500 user.info : proftpd : server successfully started
Jun 30 15:01:55 ea8500 user.notice root:  ---------------------------   USB SCRIPT HAS STARTED!!! --------
Jun 30 15:01:56 ea8500 user.notice root: Started lighttpd from .
Jun 30 15:01:56 ea8500 user.notice root:  ---------------------------   USB SCRIPT HAS STARTED!!! --------
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: reading /tmp/resolv.dnsmasq
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain test
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain onion
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain localhost
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain local
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain invalid
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: using only locally-known addresses for domain bind
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: using nameserver REDACTED
Jun 30 15:01:57 ea8500 daemon.info dnsmasq[1712]: using nameserver REDACTED
Jun 30 15:01:57 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPREQUEST(br0) REDACTED
Jun 30 15:01:57 ea8500 daemon.warn dnsmasq-dhcp[1712]: Ignoring domain monosolrx.com for DHCP host name AQM-MCILFONE
Jun 30 15:01:57 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPACK(br0) 1REDACTED
Jun 30 15:02:44 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPDISCOVER(br0) REDACTED
Jun 30 15:02:44 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPOFFER(br0) REDACTED
Jun 30 15:02:46 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPREQUEST(br0) REDACTED
Jun 30 15:02:46 ea8500 daemon.info dnsmasq-dhcp[1712]: DHCPACK(br0) REDACTED
Jun 30 15:02:58 ea8500 authpriv.info dropbear[2886]: Child connection from REDACTED
Jun 30 15:03:04 ea8500 authpriv.notice dropbear[2886]: Password auth succeeded for 'root' from REDACTED
Jun 30 15:03:29 ea8500 authpriv.info dropbear[2886]: Exit (root) from <REDACTED>: Exited normally
Jun 30 15:03:39 ea8500 authpriv.info dropbear[2909]: Child connection from REDACTED
Jun 30 15:03:43 ea8500 authpriv.notice dropbear[2909]: Password auth succeeded for 'root' from REDACTED
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Wed Jun 30, 2021 14:07    Post subject: Reply with quote
I think this is to start a script from USB drive so let the script point to the log script on the USB drive and see if it is executed

Scripts/services are started multiple times that in itself does not necessarliy indicate a bug

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Wed Jun 30, 2021 20:24    Post subject: Reply with quote
egc wrote:
Scripts/services are started multiple times that in itself does not necessarliy indicate a bug


i guess so. I will just need to put something in my script to check if its already been executed once. Its an easy enough workaround.

thanks.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum