Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
rc: Ensure file exists before source
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jan 11, 2020
1 parent 58ca147 commit fb6f3ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/init/rc.boot
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ log "Activating encrypted devices (if any exist)..."; {
}

log "Loading rc.conf settings..."; {
. /etc/rc.conf
[ -f /etc/rc.conf ] && . /etc/rc.conf
}

log "Checking filesystems..."; {
Expand Down
2 changes: 1 addition & 1 deletion lib/init/rc.shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin

log "Loading rc.conf settings..."; {
. /etc/rc.conf
[ -f /etc/rc.conf ] && . /etc/rc.conf
}

log "Running shutdown pre hooks..."; {
Expand Down

0 comments on commit fb6f3ed

Please sign in to comment.