Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
e600bdec
"...utils/iptables/git@git.ffnw.de:PowerPan/lede-mikrotik.git" did not exist on "4e4060138a5590b8deab3adc745d0e2619bbdf22"
Commit
e600bdec
authored
18 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
mount /proc earlier in /sbin/mount_root
SVN-Revision: 4022
parent
3b33c72d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openwrt/package/base-files/au1000-2.6/sbin/mount_root
+1
-0
1 addition, 0 deletions
openwrt/package/base-files/au1000-2.6/sbin/mount_root
openwrt/package/base-files/default/sbin/mount_root
+1
-1
1 addition, 1 deletion
openwrt/package/base-files/default/sbin/mount_root
with
2 additions
and
1 deletion
openwrt/package/base-files/au1000-2.6/sbin/mount_root
+
1
−
0
View file @
e600bdec
#!/bin/sh
mount none /proc
-t
proc
size
=
$(
awk
'/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}'
/proc/meminfo
)
mount none /tmp
-t
tmpfs
-o
size
=
$size
...
...
This diff is collapsed.
Click to expand it.
openwrt/package/base-files/default/sbin/mount_root
+
1
−
1
View file @
e600bdec
#!/bin/sh
size
=
$(
awk
'/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}'
/proc/meminfo
)
mount none /proc
-t
proc
size
=
$(
awk
'/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}'
/proc/meminfo
)
mount none /tmp
-t
tmpfs
-o
size
=
$size
,nosuid,nodev,mode
=
1777
mkdir
-p
/dev/pts
mount none /dev/pts
-t
devpts
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment