Re the /etc/uci-defaults/ scripts: That is a very interesting feature. Two follow up[ questions: 1) do these scripts require the same /etc/rc.common format as the files in /etc/init.d folder or are they just straight shell scripts? 2) when are they called exactly? before or after the init.d scripts, or can this be configured?
I am asking as some configuration like network and wireless may be set by the system on boot, so if one would like to add to the /etc/config/wireless configuration (i.e. by setting the power to max possible or, setting diversity etc.) then this is not possible, as the /etc/config/wireless file does not exist before /etc/init.d scripts are fired. So this means one would be looking for a first-boot-script facility that is triggered after /etc/init.d is all completed. Does this facility exist? Thank You. On 28 January 2011 06:59, Jo-Philipp Wich <x...@subsignal.org> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi. > > > What's the clean way of: > > 1) adding custom configuration (running custom scripts) on first boot. > > /etc/uci-defaults/foo.sh, a script which can contain arbritary commands, > its deleted by the system after it was invoked once. > > > 2) adding custom files to the openwrt tree on compile. > > in the toplevel dir: files/, e.g. files/etc/passwd > > > ~ Jow > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk1BsoEACgkQdputYINPTPNq3gCfcuU1GR2EhgvzqcLjJX2tjD2Q > 0F0AnjW8BKUmwDb7LhmoJpKrCzEBH6Ai > =yAdv > -----END PGP SIGNATURE----- > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel >
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel