Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
cc718022
Commit
cc718022
authored
Jun 30, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: hook up recover script on bootup
Must move the git mount up to test this properly.
parent
f4ddcaee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+0
-4
rc
src/etc/rc
+8
-9
No files found.
src/etc/inc/pfsense-utils.inc
View file @
cc718022
...
...
@@ -652,10 +652,6 @@ function reload_all_sync() {
/* start the NTP client */
system_ntp_configure
();
/* sync pw database */
@
unlink
(
'/etc/spwd.db.tmp'
);
mwexec
(
'/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd'
);
/* restart sshd */
mwexec_bg
(
'/usr/local/etc/rc.sshd'
);
...
...
src/etc/rc
View file @
cc718022
...
...
@@ -61,6 +61,14 @@ else
done
fi
# mount repo if available
if
[
-d
/root/core
]
;
then
make
-C
/root/core mount
fi
# regenerate groups and users
/usr/local/etc/rc.recover
>
/dev/null
# rewrite message of the day
/etc/rc.d/motd onestart
...
...
@@ -85,11 +93,6 @@ if [ -d "/cf/conf" ]; then
fi
# !!! migration code for OPNsense <= 15.1.7, do not remove !!!
# mount repo if available
if
[
-d
/root/core
]
;
then
make
-C
/root/core mount
fi
# set up config directory structure
mkdir
-p
/conf/backup
mkdir
-p
/conf/sshd
...
...
@@ -130,10 +133,6 @@ if [ "$CDDEVICE" != "" ]; then
cdcontrol
-f
/dev/
"
$CDDEVICE
"
eject
fi
# sync pw database after mount.
rm
-f
/etc/spwd.db.tmp
/usr/sbin/pwd_mkdb
-d
/etc/ /etc/master.passwd
# Enable console output if its muted.
/sbin/conscontrol mute off
>
/dev/null
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment