What's new

amtm amtm - the Asuswrt-Merlin Terminal Menu

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Some have their reasons and there must be a benefit, otherwise it would not be built into the UI.

One speaking against scheduled reboots is what I just saw with my main router, the RT-AC86U on 384.9_beta1.
I sent a reboot via WebUI and it just shut down, lights out and stayed there until I removed the power cord and re plugged. Never happened before.
These may be relevant as I have not noticed the failed lines before:
Code:
May  5 07:05:05 kernel:   bcm963xx-pcie: found core [2] Rev [ 3. 4]^M
May  5 07:05:05 kernel:   bcm963xx-pcie: failed to bring up core [2] link^M

May  5 07:05:05 kernel: hub 1-0:1.0: USB hub found
May  5 07:05:05 kernel: hub 1-0:1.0: config failed, hub doesn't have any ports! (err -19)
Same log entries here to, when it decides to play dead witch it seems like everyone else, a random occurrence.
 
@thelonelycoder This log entry:
Code:
Feb  1 11:02:45 syslog: USB partition unmounted from /tmp/mnt/EXT2
or the indicator for it is not getting to the disk check script, to alter the flag that says the drive was unmounted safely. The disc check still shows uncleanly unmounted. On my other router AC68U I have no issue like that. The only difference between the two routers I have are the model number and the file system. The AC3100 is ext2 and the AC68U is ext4, with journalling.
 
@thelonelycoder This log entry:
Code:
Feb  1 11:02:45 syslog: USB partition unmounted from /tmp/mnt/EXT2
or the indicator for it is not getting to the disk check script, to alter the flag that says the drive was unmounted safely. The disc check still shows uncleanly unmounted. On my other router AC68U I have no issue like that. The only difference between the two routers I have are the model number and the file system. The AC3100 is ext2 and the AC68U is ext4, with journalling.
I'm not sure what you're asking me with this.
 
@john9527 or anyone else in the know.
When disabling the Reboot scheduler in the UI, the hour_monitor is restarted. My tests so far confirm this can be done like so at the command prompt or in a script:
Code:
reboot_schedule_enable=0
nvram commit
Is that all or are more services involved to disable the UI scheduler completely?

Edit: hour_monitor (hour_monitor restart) works only on newer firmware.
Looks like the above works on both Merlin and John's fork, without the need of restarting any services.
 
Last edited:
I'd like once every two weeks of possible, that is when the "can't fork" leprechaun bites me in the ***. :eek:
If your router runs out of memory about every two weeks, a weekly reboot will make sure it never gets to a critical point.
Otherwise you'd have to reboot it every 12 or 13 days since last reboot.
 
I'm not sure what you're asking me with this.
I'm trying to figure out why this is in my logs from the system, but disc check log shows it as not a clean unmount. What am I missing here? Any thoughts?
 
I put together a little script that pre-dismounts my usb drive just before I hit the reboot button. I ssh in and run one command and let it finish and then reboot from the webui. Finally I get a clean log entry in amtm disk check log. I left everything else in all the scripts to defaults no alterations what so ever. Happy I am!!;):) Glad I won't be corrupting anymore usb drives.
 
I put together a little script that pre-dismounts my usb drive just before I hit the reboot button. I ssh in and run one command and let it finish and then reboot from the webui. Finally I get a clean log entry in amtm disk check log. I left everything else in all the scripts to defaults no alterations what so ever. Happy I am!!;):) Glad I won't be corrupting anymore usb drives.
Can you simply add "reboot" to the end of your script?
 
Can you simply add "reboot" to the end of your script?
Yes I sure can!!! I just put the command into the script I was thinking the same as you. ;):)
 
Yes I sure can!!! I just put the command into the script I was thinking the same as you. ;):)
Could you please share the script? I am looking to have a more reliable way to run automated weekly reboots on my 86U.
 
I put together a little script that pre-dismounts my usb drive just before I hit the reboot button. I ssh in and run one command and let it finish and then reboot from the webui. Finally I get a clean log entry in amtm disk check log. I left everything else in all the scripts to defaults no alterations what so ever. Happy I am!!;):) Glad I won't be corrupting anymore usb drives.

Don’t keep us guessing :)
 
Could you please share the script? I am looking to have a more reliable way to run automated weekly reboots on my 86U.
Let me get to the bottom of this. While I have the rs (Reboot scheduler) coded into amtm locally, I really would like all of it to work properly. I have contacted @skeal to help me out.
 
No need to apologize, it's all good!!!
And just in case someone's that kind of person and looking for monetary compensation for the catastrophic corruption experienced while using totally free and open source third party software on one's own router: Better Call Saul!
 
I just had a bad USB drive experience with a simple reboot initiated from the GUI. There were no firmware or software version changes. I had just updated nvram custom_clientlist and dhcp_staticlist in which I had not made errors.
The problem coincided with the following disk check message:
Code:
Sat May  5 01:05:17 EDT 2018 Starting 'e2fsck -p /dev/sda1'
SamsungT5 has been mounted 20 times without being checked, check forced.
SamsungT5: 1814/122093568 files (0.6% non-contiguous), 7955998/122093568 blocks
It is as if there is no mechanism to pause for the e2fsck to actually do something and then continue on. The boot continues into a mess. Dnsmasq spins its wheels when the USB drive is not mounted. I waited a few minutes in case it would complete and self heal but the drive remained unmounted. I ran e2fsck from the command line with no errors.
I rebooted again. The USB drive mounted but dnsmasq was using a lot of CPU with SERVFAIL responses to queries. I killed dnsmasq and stubby. I recycled stubby with S61stubby. I was going to start dnsmasq but apparently there is a watchdog which restarted it after I had killed it. Things appear to be normal again.
The USB drive does not have much on it and might be the fastest you can attach to a router. On the other hand, it is 500 GB, but I speculate that an fsck only needs to check filesystem in use. The filesystem is EXT4 with journaling on. I am using AMTM disk check.
Back to the bad reboot; I have tried my best to filter the relevant syslog messages.
Code:
Feb  4 14:52:44 rc_service: httpds 1254:notify_rc reboot
Feb  4 14:52:45 custom_script: Running /jffs/scripts/services-stop
Feb  4 14:52:46 disk_monitor: Finish
Feb  4 14:52:55 custom_script: Running /jffs/scripts/unmount (args: /tmp/mnt/SamsungT5 ) - max timeout = 120s
Feb  4 14:52:55 Diversion: disabling services for unmount, from /opt/bin/diversion
Feb  4 14:52:57 init: USB partition unmounted from /tmp/mnt/SamsungT5
Feb  4 14:52:57 syslogd exiting
May  5 01:05:09 syslogd started: BusyBox v1.25.1
May  5 01:05:10 custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf ) - max timeout = 120s
May  5 01:05:10 disk_monitor: be idle
May  5 01:05:14 rc_service: udhcpc 1471:notify_rc start_firewall
May  5 01:05:15 kernel: scsi 0:0:0:0: Direct-Access     Samsung  Portable SSD T5  0    PQ: 0 ANSI: 6
May  5 01:05:15 kernel: sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
May  5 01:05:15 kernel: sd 0:0:0:0: [sda] Write Protect is off
May  5 01:05:15 kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May  5 01:05:15 kernel:  sda: sda1
May  5 01:05:15 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
May  5 01:05:16 custom_script: Running /jffs/scripts/firewall-start (args: eth0)
May  5 01:05:17 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1 ) - max timeout = 120s
May  5 01:05:17 amtm: Running disk check 'e2fsck -p' on /dev/sda1
Feb  4 14:53:42 disk_monitor: Finish
Feb  4 14:53:43 disk_monitor: be idle
Feb  4 14:53:43 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 1 Of 10 )
Feb  4 14:53:47 rc_service: udhcpc 1471:notify_rc start_firewall
Feb  4 14:53:47 custom_script: Running /jffs/scripts/firewall-start (args: eth0)
Feb  4 14:53:53 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 2 Of 10 )
Feb  4 14:54:03 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 3 Of 10 )
Feb  4 14:54:13 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 4 Of 10 )
Feb  4 14:54:23 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 5 Of 10 )
Feb  4 14:54:33 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 6 Of 10 )
Feb  4 14:54:43 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 7 Of 10 )
Feb  4 14:54:53 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 8 Of 10 )
Feb  4 14:55:03 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 9 Of 10 )
Feb  4 14:55:14 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 10 Of 10 )
Feb  4 14:55:24 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 11 Of 10 )
Feb  4 14:55:34 Skynet: [*] Problem With USB Install Location - Please Fix Immediately!
Feb  4 14:55:34 Skynet: [*] When Fixed Run ( sh /jffs/scripts/firewall restart )
Feb  4 14:55:40 hotplug: USB /dev/sda1(ext) failed to mount!
Feb  4 14:55:40 hotplug: USB /dev/sda1(ext) failed to mount!
Feb  4 14:57:49 rstats[1266]: Problem loading /mnt/SamsungT5/traffic/tomato_rstats_0c9d9201f098.gz. Still trying...
Feb  4 15:02:05 rstats[1266]: Problem loading /mnt/SamsungT5/traffic/tomato_rstats_0c9d9201f098.gz. Still trying...
And here is the subsequent reboot where the USB drive mounted:
Code:
Feb  4 15:02:38 rc_service: httpds 1254:notify_rc reboot
Feb  4 15:02:38 custom_script: Running /jffs/scripts/services-stop
Feb  4 15:02:38 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 1 Of 10 )
Feb  4 15:02:39 disk_monitor: Finish
Feb  4 15:02:48 syslogd exiting
May  5 01:05:09 syslogd started: BusyBox v1.25.1
May  5 01:05:10 custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf ) - max timeout = 120s
May  5 01:05:10 disk_monitor: be idle
May  5 01:05:13 rc_service: udhcpc 1445:notify_rc start_firewall
May  5 01:05:14 kernel: scsi 0:0:0:0: Direct-Access     Samsung  Portable SSD T5  0    PQ: 0 ANSI: 6
May  5 01:05:14 kernel: sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
May  5 01:05:14 kernel: sd 0:0:0:0: [sda] Write Protect is off
May  5 01:05:14 kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May  5 01:05:14 kernel:  sda: sda1
May  5 01:05:14 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
May  5 01:05:15 custom_script: Running /jffs/scripts/firewall-start (args: eth0)
May  5 01:05:16 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1 ) - max timeout = 120s
May  5 01:05:16 amtm: Running disk check 'e2fsck -p' on /dev/sda1
May  5 01:05:16 amtm: Disk check done on /dev/sda1
May  5 01:05:16 hotplug: USB ext4 fs at /dev/sda1 mounted on /tmp/mnt/SamsungT5
May  5 01:05:16 kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: user_xattr
May  5 01:05:16 usb: USB ext4 fs at /dev/sda1 mounted on /tmp/mnt/SamsungT5.
May  5 01:05:16 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/SamsungT5 ) - max timeout = 120s
May  5 01:05:16 kernel: Adding 1048572k swap on /tmp/mnt/SamsungT5/myswap.swp.  Priority:-1 extents:10 across:1196028k SS
Feb  4 15:03:30 disk_monitor: Finish
Feb  4 15:03:30 disk_monitor: be idle
Feb  4 15:03:31 Diversion: created br0:pixelserv-tls 192.168.50.254, from /opt/etc/init.d/S80pixelserv-tls
Feb  4 15:03:31 Skynet: [%] Startup Initiated... ( skynetloc=/tmp/mnt/SamsungT5/skynet )
Feb  4 15:03:31 Entware (aarch64-k3.10): Started pixelserv-tls (Diversion) from /jffs/scripts/post-mount
Feb  4 15:03:31 Diversion: started Entware services, from /jffs/scripts/post-mount
Feb  4 15:03:31 custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf ) - max timeout = 120s
Feb  4 15:03:31 Diversion: enabling services after unmount, from /opt/bin/diversion
Feb  4 15:03:32 Diversion: auto-added IPv6 entries to blocking list(s) and blacklist, this might have taken some time, from /jffs/scripts/dnsmasq.postconf
Feb  4 15:03:32 Diversion: restarted Dnsmasq to apply settings, from /jffs/scripts/dnsmasq.postconf
 
Last edited:
I just had a bad USB drive experience with a simple reboot initiated from the GUI. There were no firmware or software version changes. I had just updated nvram custom_clientlist and dhcp_staticlist in which I had not made errors.
The problem coincided with the following disk check message:
Code:
Sat May  5 01:05:17 EDT 2018 Starting 'e2fsck -p /dev/sda1'
SamsungT5 has been mounted 20 times without being checked, check forced.
SamsungT5: 1814/122093568 files (0.6% non-contiguous), 7955998/122093568 blocks
It is as if there is no mechanism to pause for the e2fsck to actually do something and then continue on. The boot continues into a mess. Dnsmasq spins its wheels when the USB drive is not mounted. I waited a few minutes in case it would complete and self heal but the drive remained unmounted. I ran e2fsck -p /dev/sda1 from the command line with no errors.
I rebooted again. The disk check output was:
Code:
Sat May  5 01:05:16 EDT 2018 Starting 'e2fsck -p /dev/sda1'
SamsungT5: clean, 1814/122093568 files, 7955998/122093568 blocks
The USB drive mounted but dnsmasq was using a lot of CPU with SERVFAIL responses to queries. I killed dnsmasq and stubby. I recycled stubby with S61stubby. I was going to start dnsmasq but apparently there is a watchdog which restarted it after I had killed it. Things appear to be normal again.
The USB drive does not have much on it and might be the fastest you can attach to a router. The filesystem is EXT4 with journaling on. I am using AMTM disk check.
Code:
# df -k /tmp/mnt/SamsungT5
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1            457786072   1246372 432104604   0% /tmp/mnt/SamsungT5

# tune2fs -l /dev/sda1
tune2fs 1.42.13 (17-May-2015)
Filesystem volume name:   SamsungT5
Last mounted on:          /tmp/mnt/SamsungT5
Filesystem UUID:          7c9f16d9-48a8-d401-7083-16d948a8d401
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr filetype needs_recovery extent flex_bg sparse_super large_file huge_file extra_isize
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              122093568
Block count:              122093568
Reserved block count:     6104678
Free blocks:              114137570
Free inodes:              122091754
First block:              0
Block size:               4096
Fragment size:            4096
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         32768
Inode blocks per group:   2048
Last mount time:          Sat May  5 01:05:16 2018
Last write time:          Sat May  5 01:05:16 2018
Mount count:              1
Maximum mount count:      20
Last checked:             Sat May  5 01:05:17 2018
Check interval:           15552000 (6 months)
Next check after:         Thu Nov  1 01:05:17 2018
Lifetime writes:          4140 MB
Reserved blocks uid:      0 (user HdB342665LNtPFM)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Journal inode:            8
Journal backup:           inode blocks
I do not see anything in the logs to help analyze.
Code:
Feb  4 14:53:39 192.168.50.240 1 2019-02-04T14:53:39-05:00 SG300-10 LINK - Down - %LINK-W-Down:  gi10, aggregated (1)
Feb  4 14:53:39 192.168.50.240 1 2019-02-04T14:53:39-05:00 SG300-10 LINK - Down - %LINK-W-Down:  Po1, aggregated (1)
Feb  4 14:53:39 192.168.50.240 1 2019-02-04T14:53:39-05:00 SG300-10 LINK - Up - %LINK-I-Up:  gi9, aggregated (1)
Feb  4 14:53:39 192.168.50.240 1 2019-02-04T14:53:39-05:00 SG300-10 LINK - Up - %LINK-I-Up:  gi10, aggregated (1)
Feb  4 14:53:39 192.168.50.240 1 2019-02-04T14:53:39-05:00 SG300-10 TRUNK - PORTADDED - %TRUNK-I-PORTADDED: Port gi9 added to Po1
Feb  4 14:53:43 192.168.50.240 1 2019-02-04T14:53:42-05:00 SG300-10 TRUNK - PORTADDED - %TRUNK-I-PORTADDED: Port gi10 added to Po1, aggregated (1)
Feb  4 14:53:43 192.168.50.240 1 2019-02-04T14:53:42-05:00 SG300-10 LINK - Up - %LINK-I-Up:  Po1, aggregated (1)
Feb  4 14:53:43 192.168.50.240 1 2019-02-04T14:53:42-05:00 SG300-10 STP - PORTSTATUS - %STP-W-PORTSTATUS: Po1: STP status Forwarding
Feb  4 14:53:43 router disk_monitor: be idle
Feb  4 14:53:42 router rc_service: ntp 1617:notify_rc restart_diskmon
Feb  4 14:53:43 router qos: Applying codel patch
May  5 01:05:19 router ntp: start NTP update
Feb  4 14:53:43 router kernel: tdts: tcp_conn_max = 8000
Feb  4 14:53:43 router kernel: tdts: tcp_conn_timeout = 300 sec
Feb  4 14:53:42 router disk_monitor: Finish
Feb  4 14:53:43 router kernel: Init chrdev /dev/idp with major 190
Feb  4 14:53:43 router BONDING: successfully
Feb  4 14:53:43 router Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 1 Of 10 )
Feb  4 14:53:44 router kernel: random: nonblocking pool is initialized
Feb  4 14:53:44 router kernel: SHN Release Version: 2.0.1 0679c74
Feb  4 14:53:44 router kernel: UDB Core Version: 0.2.18
Feb  4 14:53:44 router kernel: Init chrdev /dev/idpfw with major 191
Feb  4 14:53:44 router kernel: IDPfw: flush fc
Feb  4 14:53:44 router kernel: IDPfw: IDPfw is ready
Feb  4 14:53:44 router kernel: sizeof forward pkt param = 280
Feb  4 14:53:45 router BWDPI: fun bitmap = 7f
Feb  4 14:53:47 router rc_service: udhcpc 1471:notify_rc start_firewall
Feb  4 14:53:47 router nat: apply nat rules (/tmp/nat_rules_eth0_eth0)
Feb  4 14:53:47 router custom_script: Running /jffs/scripts/firewall-start (args: eth0)
Feb  4 14:53:47 router Skynet: [*] Lock File Detected (start skynetloc=/tmp/mnt/SamsungT5/skynet) (pid=1636) - Exiting (cpid=2061)
Feb  4 14:53:51 router dnsmasq-dhcp[1242]: DHCPv6 stateless on 2601:18f:800:b426::, constructed for br0
Feb  4 14:53:51 router dnsmasq-dhcp[1242]: router advertisement on 2601:18f:800:b426::, constructed for br0
Feb  4 14:53:52 router dnsmasq[1242]: Maximum number of concurrent DNS queries reached (max: 150)
Feb  4 14:53:53 router Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 2 Of 10 )
Feb  4 14:53:57 router dnsmasq-dhcp[1242]: DHCPREQUEST(br0) 192.168.50.210 00:18:61:0d:4d:3b
Feb  4 14:53:57 router dnsmasq-dhcp[1242]: DHCPACK(br0) 192.168.50.210 00:18:61:0d:4d:3b PhoneOoma
Feb  4 14:53:58 router dnsmasq[1242]: Maximum number of concurrent DNS queries reached (max: 150)
Feb  4 14:54:03 router kernel: ubi1: attaching mtd9
Feb  4 14:54:03 router kernel: ubi1: scanning is finished
Feb  4 14:54:03 router kernel: ubi1: attached mtd9 (name "misc1", size 8 MiB)
Feb  4 14:54:03 router kernel: ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
Feb  4 14:54:03 router kernel: ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
Feb  4 14:54:03 router kernel: ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
Feb  4 14:54:03 router kernel: ubi1: good PEBs: 64, bad PEBs: 0, corrupted PEBs: 0
Feb  4 14:54:03 router kernel: ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
Feb  4 14:54:03 router kernel: ubi1: max/mean erase counter: 31/19, WL threshold: 4096, image sequence number: 1862459137
Feb  4 14:54:03 router kernel: ubi1: available PEBs: 0, total reserved PEBs: 64, PEBs reserved for bad PEB handling: 4
Feb  4 14:54:03 router kernel: ubi1: background thread "ubi_bgt1d" started, PID 2169
Feb  4 14:54:03 router Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 3 Of 10 )
Feb  4 14:54:04 router dnsmasq[1242]: Maximum number of concurrent DNS queries reached (max: 150)
Feb  4 14:54:04 router kernel: UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started, PID 2190
Feb  4 14:54:04 router kernel: UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "nvram"
Feb  4 14:54:04 router kernel: UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
Feb  4 14:54:04 router kernel: UBIFS (ubi1:0): FS size: 5840896 bytes (5 MiB, 46 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
Feb  4 14:54:04 router kernel: UBIFS (ubi1:0): reserved for root: 275879 bytes (269 KiB)
Feb  4 14:54:04 router kernel: UBIFS (ubi1:0): media format: w4/r0 (latest is w4/r0), UUID B5453CA3-D074-46CD-A5AB-7C084A567601, small LPT model
Feb  4 14:54:04 router kernel: UBIFS (ubi1:0): un-mount UBI device 1
Feb  4 14:54:04 router kernel: UBIFS (ubi1:0): background thread "ubifs_bgt1_0" stops
Feb  4 14:54:04 router kernel: ubi1: detaching mtd9
Feb  4 14:54:04 router kernel: ubi1: mtd9 is detached
Feb  4 14:54:10 router dnsmasq[1242]: Maximum number of concurrent DNS queries reached (max: 150)
Feb  4 14:54:13 router Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 4 Of 10 )
Feb  4 14:54:16 router dnsmasq[1242]: Maximum number of concurrent DNS queries reached (max: 150)
Feb  4 14:54:22 router dnsmasq[1242]: Maximum number of concurrent DNS queries reached (max: 150)
I had this problem after a power failure. I turned off the router for around 5 minutes and then turned it back on and everything was fine. I unplugged and replugged my USB drive while the power was off as well to make sure the cat hadn't knocked it but I can't see how that had anything to do with it since it seemed to be firmly inserted before I removed it.
 
So apparently I have been doomed from the start. By default, the filesystem only gets checked on the twentieth mount or six months, whichever comes first. What? Yup. And when the twentieth mount happens, it takes:
Code:
# time e2fsck -f -p /dev/sda1
SamsungT5: 1816/122093568 files (0.7% non-contiguous), 7963808/122093568 blocks
real    2m 14.49s
user    0m 54.05s
sys     0m 46.73s
So now I need to reconsider what new layouts will work.
 
What’s the proper way to get added into the list of available scripts within amtm?

Fork, add entry to fork, have fork evaluated before merge to main?

What’s required?

-install (if not detected)
-update check (if installed)
-run (if up to date and script has interactive menu)
-uninstall if user enters R submenu

That’s it ?

(I read first page and GitHub readme. May have missed any instruction if exists)
 
What’s required?

-install (if not detected)
-update check (if installed)
-run (if up to date and script has interactive menu)
-uninstall if user enters R submenu

That’s it ?

Pretty much the end goal is to provide access to tools that have completely interactive menu's to make it easy as possible for users. As you mentioned this includes having install/uninstall/update functions as a baseline, I'd probably suggest against requiring users to manually edit any files either so configuration is easy as possible. POSIX compliance is also a plus where possible.
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top