What's new

Scheduled reboot set up issue

  • 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!

To RMerlin

It's fatality:(

try as You wrote:
1. enable "Format JFFS partition at next boot"
2. press "Apply"
3. putty (SSH)
ASUSWRT-Merlin RT-AC68U_3.0.0.4 Sat Jun 7 16:32:17 UTC 2014
admin@RT-AC68U:/tmp/home/root# nvram unset jffs2_size
admin@RT-AC68U:/tmp/home/root# nvram commit
admin@RT-AC68U:/tmp/home/root# reboot
admin@RT-AC68U:/tmp/home/root#

and see again

ASUSWRT-Merlin RT-AC68U_3.0.0.4 Sat Jun 7 16:32:17 UTC 2014
admin@RT-AC68U:/tmp/home/root# cat << EOF > /jffs/scripts/services-start
> #!/bin/sh
> /usr/sbin/cru a ScheduledReboot "0 5 * * * reboot"
> EOF
-sh: can't create /jffs/scripts/services-start: nonexistent directory
admin@RT-AC68U:/tmp/home/root#
 
It's fatality:(

try as You wrote:
1. enable "Format JFFS partition at next boot"
2. press "Apply"
3. putty (SSH)
ASUSWRT-Merlin RT-AC68U_3.0.0.4 Sat Jun 7 16:32:17 UTC 2014
admin@RT-AC68U:/tmp/home/root# nvram unset jffs2_size
admin@RT-AC68U:/tmp/home/root# nvram commit
admin@RT-AC68U:/tmp/home/root# reboot
admin@RT-AC68U:/tmp/home/root#

and see again

ASUSWRT-Merlin RT-AC68U_3.0.0.4 Sat Jun 7 16:32:17 UTC 2014
admin@RT-AC68U:/tmp/home/root# cat << EOF > /jffs/scripts/services-start
> #!/bin/sh
> /usr/sbin/cru a ScheduledReboot "0 5 * * * reboot"
> EOF
-sh: can't create /jffs/scripts/services-start: nonexistent directory
admin@RT-AC68U:/tmp/home/root#

No idea then. You must be skipping a step somewhere, or something else is wrong, cause this should just work. Check in System Log for any error related to jffs2, otherwise I have no other idea.
 
Type the following commands and show us the output:
Code:
# mount
# nvram get jffs2_on
# ls -l /jffs/
# mkdir /jffs/scripts
# grep -i jffs /tmp/syslog.log
 
Last edited:
ASUSWRT-Merlin RT-AC68U_3.0.0.4 Sat Jun 7 16:32:17 UTC 2014
admin@RT-AC68U:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=127720k,nr_inodes=31930,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
admin@RT-AC68U:/tmp/home/root# nvram get jffs2_on
1
admin@RT-AC68U:/tmp/home/root# ls -l /jffs/
admin@RT-AC68U:/tmp/home/root# mkdir /jffs/scripts
mkdir: can't create directory '/jffs/scripts': Read-only file system
admin@RT-AC68U:/tmp/home/root# grep -i jffs /tmp/syslog.log
Jan 1 04:00:13 kernel: 0x000004000000-0x000006000000 : "jffs2"
admin@RT-AC68U:/tmp/home/root#
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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