Modify

Opened 10 years ago

Closed 10 years ago

#2198 closed defect (worksforme)

rc.common not wrapping properly or finding the init.d file

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc: nathan.vanfleet@…

Description

Using "/etc/rc.common /etc/init.d/timedate enable" to create a bootup script. Script is linked successfully (script itself is below) but for some reason the logread says it cannot find the file on bootup. The file is indeed in the proper folder but for some reason it is not activating.

See the following post:

http://forum.openwrt.org/viewtopic.php?pid=53702#p53702

SCRIPT -------

#!/bin/sh /etc/rc.common
START=90

start() {

rdate -s <NTP Server Address>

}

SCRIPT -------

LOG ---------

Dec 31 19:00:31 openwrt user.info : /etc/init.d/rcS: /etc/init.d/rcS: 8: /etc/rc.d/S90timedate: not found

LOG ---------

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by anonymous

busybox's ash doesn't differ between a non existent file, a unknown interpreter in the #! line and if a file isn't executable (x bit set).

comment:2 Changed 10 years ago by nbd

  • Resolution set to worksforme
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.