Customize your boot (rc.local replacement)
Posted: 29 Jan 2016, 12:16
post split from new tutorials section viewtopic.php?f=138&t=5450
Muuuch usefull ! Will test that piece of info tonight .
Tested aus9 tutorial and just works
Here is a shortened memo (note: originaly posted under aus8 tutorial then forum modo moved it here)
In Nemesis where do you guys put your "rc.local" (have simple commands run upon boot)?
In:
/etc/local.d/
Syntax is the same as "rc.local"
Note that any command you put here are system wide. There's a README in there for the smart guys (who RTFM
Creation
1/ In any case
2/ Starting fresh (with no working rc.local)
2'/ You already have a working rc.local
(-) #/!bin/sh
(+) #/!bin/bash
[ Your simple command(s) ]
3/ In any case, make it executable
Muuuch usefull ! Will test that piece of info tonight .
Tested aus9 tutorial and just works
Here is a shortened memo (note: originaly posted under aus8 tutorial then forum modo moved it here)
In Nemesis where do you guys put your "rc.local" (have simple commands run upon boot)?
In:
/etc/local.d/
Syntax is the same as "rc.local"
Note that any command you put here are system wide. There's a README in there for the smart guys (who RTFM
Creation
1/ In any case
Code: Select all
# mkdir -p PATH/TO/CHANGES/local.d
Code: Select all
# $EDITOR PATH/TO/CHANGES/local.d/zz.start
Code: Select all
#/!bin/bash
[Make your changes, eg.
mount DEVICE DIRECTORY OPTIONS]
Code: Select all
# cat /etc/rc.local > PATH/TO/CHANGES/local.d/zz.start
(+) #/!bin/bash
[ Your simple command(s) ]
3/ In any case, make it executable
Code: Select all
# chmod +x PATH/TO/CHANGES/local.d/zz.start