Changeset aa1f004 in freewrt for target/linux


Ignore:
Timestamp:
Nov 24, 2006, 4:07:42 PM (19 years ago)
Author:
Phil Sutter <n0-1@…>
Children:
1c5c32b
Parents:
727d3354
Message:

fixed calculation, thx @tg :)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1201 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • target/linux/rb-2.6/files/sbin/mount_root

    r727d3354 raa1f004  
    11#!/bin/sh
    22
    3 size=$(awk '/MemTotal:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
     3size=$(awk '/MemTotal:/ {l=5120;print(((s=$2/2)<l)?$2-l:s)*1024}' /proc/meminfo)
    44mount none /tmp -t tmpfs -o size=$size
    55mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
Note: See TracChangeset for help on using the changeset viewer.