Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
9edb1380fb | |||
f65b360295 | |||
362571f19a |
3
rc.conf
3
rc.conf
@@ -4,6 +4,9 @@ export PATH='/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin'
|
|||||||
# Hostname
|
# Hostname
|
||||||
cfg_hostname='changeme'
|
cfg_hostname='changeme'
|
||||||
|
|
||||||
|
# Timezone
|
||||||
|
#cfg_timezone='Europe/Moscow'
|
||||||
|
|
||||||
# Services
|
# Services
|
||||||
cfg_services+=( 'fsck' 'mount' 'systemd-udevd' 'sysctl' ) # Services that need tp be started in an order
|
cfg_services+=( 'fsck' 'mount' 'systemd-udevd' 'sysctl' ) # Services that need tp be started in an order
|
||||||
cfg_services+=( @agetty-tty{2..6} ) # Comment this if your init starts something on the ttys itself.
|
cfg_services+=( @agetty-tty{2..6} ) # Comment this if your init starts something on the ttys itself.
|
||||||
|
9
rc.in
9
rc.in
@@ -108,6 +108,7 @@ rc.remount_root() {
|
|||||||
rc.boot() {
|
rc.boot() {
|
||||||
rc.mount_misc
|
rc.mount_misc
|
||||||
rc.hostname
|
rc.hostname
|
||||||
|
rc.timezone
|
||||||
rc.modules
|
rc.modules
|
||||||
rc.services_start
|
rc.services_start
|
||||||
wait
|
wait
|
||||||
@@ -143,6 +144,12 @@ rc.modules() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rc.timezone() {
|
||||||
|
[[ "$cfg_timezone" ]] && {
|
||||||
|
ln -fs "/usr/share/zoneinfo/${cfg_timezone}" /etc/localtime
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rc.main() {
|
rc.main() {
|
||||||
source "@ETC@/rc.conf"
|
source "@ETC@/rc.conf"
|
||||||
|
|
||||||
@@ -154,7 +161,7 @@ rc.main() {
|
|||||||
rc.boot
|
rc.boot
|
||||||
;;
|
;;
|
||||||
|
|
||||||
poweroff|reboot|shutdown)
|
poweroff|reboot|shutdown|halt)
|
||||||
rc.shutdown
|
rc.shutdown
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user