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
a84ebd98
Commit
a84ebd98
authored
Apr 30, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg: better FreeBSD repo override
parent
cb761a34
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
7 deletions
+2
-7
.gitignore
.gitignore
+1
-1
+POST_INSTALL
pkg/+POST_INSTALL
+0
-3
+PRE_DEINSTALL
pkg/+PRE_DEINSTALL
+0
-3
FreeBSD.conf
src/etc/pkg/repos/FreeBSD.conf
+1
-0
No files found.
.gitignore
View file @
a84ebd98
/src/etc/pkg.conf
/src/etc/pkg/
**
/src/etc/pkg/
OPNsense.conf
/src/etc/ssh/**
/src/etc/php.ini
/src/lib/**
...
...
pkg/+POST_INSTALL
View file @
a84ebd98
...
...
@@ -7,9 +7,6 @@ rm -f /etc/shells.bak
echo "Registering root shell"
pw usermod -n root -s /usr/local/etc/rc.initial
echo "Disabling FreeBSD mirror"
sed -i "" -e "s/^ enabled: yes$/ enabled: no/" /etc/pkg/FreeBSD.conf
echo "Hooking into /etc/rc"
cp /etc/rc /etc/rc.bak
cat > /etc/rc <<EOF
...
...
pkg/+PRE_DEINSTALL
View file @
a84ebd98
...
...
@@ -11,8 +11,5 @@ cp /etc/rc /etc/rc.bak
tail -n +5 /etc/rc.bak > /etc/rc
rm -f /etc/rc.bak
echo "Enabling FreeBSD mirror"
sed -i "" -e "s/^ enabled: no$/ enabled: yes/" /etc/pkg/FreeBSD.conf
echo "Removing OPNsense version"
rm -f /usr/local/opnsense/version/opnsense
src/etc/pkg/repos/FreeBSD.conf
0 → 100644
View file @
a84ebd98
FreeBSD
: {
enabled
:
no
}
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