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
f82a8985
Commit
f82a8985
authored
Dec 10, 2014
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installer: don't need these files anymore
parent
8708cad5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
57 deletions
+0
-57
after_installation_routines.sh
src/installer/after_installation_routines.sh
+0
-44
cleargpt.sh
src/installer/cleargpt.sh
+0
-13
No files found.
src/installer/after_installation_routines.sh
deleted
100755 → 0
View file @
8708cad5
#!/bin/sh
# Copy the current running systems config.xml to the target installation area.
mkdir
-p
/mnt/cf/conf
cp
-r
/cf/conf/
*
/mnt/cf/conf/
touch
/mnt/cf/conf/trigger_initial_wizard
# Updating boot loader
echo
autoboot_delay
=
\"
3
\"
>>
/mnt/boot/loader.conf
echo
vm.kmem_size
=
\"
435544320
\"
>>
/mnt/boot/loader.conf
echo
vm.kmem_size_max
=
\"
535544320
\"
>>
/mnt/boot/loader.conf
echo
kern.ipc.nmbclusters
=
\"
0
\"
>>
/mnt/boot/loader.conf
# Hide usbus# from network interfaces list on pfSense >= 2.1
VERSION
=
`
head
-n
1 /mnt/etc/version |
cut
-c
1-3
`
;
if
[
"
${
VERSION
}
"
!=
"1.2"
-a
"
${
VERSION
}
"
!=
"2.0"
]
;
then
echo
hw.usb.no_pf
=
\"
1
\"
>>
/mnt/boot/loader.conf
;
fi
;
# Set platform back to pfSense to prevent freesbie_1st from running
echo
"pfSense"
>
/mnt/usr/local/etc/platform
# Let parent script know that a install really happened
touch
/tmp/install_complete
chmod
a-w /mnt/boot/loader.rc
chflags schg /mnt/boot/loader.rc
mkdir
-p
/mnt/var/installer_logs
cp
/tmp/install.disklabel /mnt/var/installer_logs
cp
/tmp/install.disklabel
*
/mnt/var/installer_logs
cp
/tmp/installer.log /mnt/var/installer_logs
cp
/tmp/install-session.sh /mnt/var/installer_logs
cp
/tmp/new.fdisk /mnt/var/installer_logs
mkdir
-p
/mnt/var/db/pkg
cd
/var/db/pkg
;
tar
-cpf
-
.
|
(
cd
/mnt/var/db/pkg
;
tar
-xpf
-
)
# If the platform is vmware, lets do some fixups.
if
[
-f
/var/IS_VMWARE
]
;
then
echo
""
>>
/mnt/etc/sysctl.conf
;
echo
"kern.timecounter.hardware=i8254"
>>
/mnt/etc/sysctl.conf
;
echo
kern.hz
=
"100"
>>
/mnt/boot/loader.conf
;
fi
;
# Fixup permissions on installed files
if
[
-f
/etc/installed_filesystem.mtree
]
;
then
/usr/sbin/mtree
-U
-e
-q
-f
/etc/installed_filesystem.mtree
-p
/mnt/
>
/mnt/conf/mtree.log
;
fi
;
#Sync disks
/bin/sync
src/installer/cleargpt.sh
deleted
100755 → 0
View file @
8708cad5
#!/bin/sh
DISK
=
$1
if
[
"
$DISK
"
=
""
]
;
then
echo
"You must specify the disk that should be formatted/cleared."
exit
1
fi
for
PART
in
`
gpart show
$DISK
|
grep
-v
'=>'
|
awk
'{ print $3 }'
`
;
do
if
[
"
$PART
"
!=
""
]
;
then
/sbin/gpart delete
-i
$PART
$DISK
>
/dev/null
fi
done
/sbin/gpart destroy
$DISK
>
/dev/null
exit
0
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