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
c2d2fe4b
Commit
c2d2fe4b
authored
Mar 02, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: shuffle newlines around a wee bit too (#32)
parent
478d738e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
rc
src/etc/rc
+0
-2
rc.initial
src/etc/rc.initial
+2
-2
rc.initial.banner
src/etc/rc.initial.banner
+1
-1
rc.initial.firmware_update
src/etc/rc.initial.firmware_update
+6
-5
No files found.
src/etc/rc
View file @
c2d2fe4b
...
...
@@ -386,8 +386,6 @@ fi
# Reset the cache. read-only requires this.
/bin/rm
-f
/tmp/config.cache
echo
/usr/local/etc/rc.initial.banner
exit
0
src/etc/rc.initial
View file @
c2d2fe4b
...
...
@@ -23,11 +23,11 @@ if [ -n "${*}" ]; then
exit
${
?
}
fi
echo
# endless loop
while
:
;
do
echo
# If we are on the install media advertise that fact
if
_tmpdir
=
$(
mktemp
-d
-q
/.diskless.XXXXXX
)
;
then
rmdir
${
_tmpdir
}
...
...
src/etc/rc.initial.banner
View file @
c2d2fe4b
...
...
@@ -38,7 +38,7 @@ $hostname = $config['system']['hostname'];
$product
=
$g
[
'product_name'
];
$machine
=
trim
(
`uname -m`
);
print
"*** Welcome to
{
$product
}
{
$version
}
(
{
$machine
}
) on
{
$hostname
}
***
\n
"
;
print
"
\n
*** Welcome to
{
$product
}
{
$version
}
(
{
$machine
}
) on
{
$hostname
}
***
\n
"
;
$iflist
=
get_configured_interface_with_descr
(
false
,
true
);
foreach
(
$iflist
as
$ifname
=>
$friendly
)
{
...
...
src/etc/rc.initial.firmware_update
View file @
c2d2fe4b
...
...
@@ -39,18 +39,19 @@ case ${YN} in
;;
esac
trap
: 2
trap
: 3
echo
# upgrade all packages if possible
pkg upgrade
-y
echo
# refresh the php.ini files now rather than later
/usr/local/etc/rc.php_ini_setup
echo
# if we can update base, we'll do that as well
if
opnsense-update
-c
;
then
opnsense-update
&&
reboot
opnsense-update
&&
/usr/local/etc/rc.
reboot
fi
echo
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