parent
1744fe9531
commit
3c30f5f34e
@ -115,9 +115,28 @@ EOF
|
|||||||
# ln -s /tmp state
|
# ln -s /tmp state
|
||||||
# cd -
|
# cd -
|
||||||
|
|
||||||
|
disableStage1
|
||||||
|
|
||||||
log "Finished setting up extroot"
|
log "Finished setting up extroot"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disableStage1()
|
||||||
|
{
|
||||||
|
# FIXME it would be more future-proof to transform the rc.local file
|
||||||
|
# instead of overwriting it.
|
||||||
|
cat >/etc/rc.local <<EOF
|
||||||
|
# If you want to re-run the initialization of the extroot once again,
|
||||||
|
# then remove the comment from before the stage1.sh script below,
|
||||||
|
# reboot the router without the extroot pendrive, and when it's booted
|
||||||
|
# then insert the pendrive. It will then be reformatted and
|
||||||
|
# reinitialized.
|
||||||
|
|
||||||
|
#/root/autoprovision-stage1.sh
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
autoprovisionStage1()
|
autoprovisionStage1()
|
||||||
{
|
{
|
||||||
signalAutoprovisionWorking
|
signalAutoprovisionWorking
|
||||||
|
Loading…
x
Reference in New Issue
Block a user