Установите hgsvn, затем сделайте следующее
hg clone https://bitbucket.org/"channel"/dotfiles/src dotfiles
Где channel - файлы пользователей, которые вы хотите клонировать.
Чтобы добавить записи в системный inittab, используйтеmkitab
:
sudo mkitab 'myapp1:2:respawn:/path/to/myapp1'
sudo mkitab 'myapp2:2:wait:/path/to/myapp2'
sudo mkitab 'myapp3:2:once:/path/to/myapp3'
sudo mkitab 'myapp4:2:boot:/path/to/myapp4'
sudo mkitab 'myapp5:2:bootwait:/path/to/myapp5'
Там, где различные Action
варианты (наиболее полезны):
respawn
If the process identified in this record does not exist, start the process. If the process currently exists, do nothing and continue scanning the /etc/inittab file.
wait
When the init command enters the run level specified for this record, start the process and wait for it to stop. While the init command is in the same run level, all subsequent reads of the /etc/inittab file ignore this object.
once
When the init command enters the run level specified for this record, start the process, do not wait for it to stop and when it does stop do not restart the process. If the system enters a new run level while the process is running, the process is not restarted.
boot
Read this record only when the system boots and reads the /etc/inittab file. The init command starts the process. Do not wait for the process to stop and when it does stop, do not restart the process. The run level for this process should be the default, or it must match the run level specified by the init command at startup time.
bootwait
Read this record only when the system boots and reads the /etc/inittab file. The init command starts the process. Wait for it to stop, and when it does stop, do not restart the process.
Ссылка:
Я считаю, что вы должны указать inittab
на сценарий, но вы должны использовать доступные инструменты, а не редактировать вручную.
man mkitab