projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure dropbear is installed before disabling telnet (#920)
[openwrt.git]
/
target
/
image
/
x86
/
gen_image.sh
diff --git
a/target/image/x86/gen_image.sh
b/target/image/x86/gen_image.sh
index
3edce1e
..
21deeee
100755
(executable)
--- a/
target/image/x86/gen_image.sh
+++ b/
target/image/x86/gen_image.sh
@@
-1,9
+1,9
@@
-#!/
bin/
sh
+#!/
usr/bin/env ba
sh
# Copyright (C) 2006 OpenWrt.org
[ $# == 5 ] || {
# Copyright (C) 2006 OpenWrt.org
[ $# == 5 ] || {
-
echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image>"
-
exit 1
+ echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image>"
+ exit 1
}
file="$1"
}
file="$1"
@@
-22,20
+22,20
@@
n
p
1
p
1
-+$
{part1s}M
++$
(($part1s * 1024))K
n
p
2
n
p
2
-+${part2s}M
+
w
q
EOF
block() {
w
q
EOF
block() {
-
echo -e 'p\nq' | fdisk -u -C $cyl -H $head -S $sect "$file" | awk -v file="$file$1" -v n="$(($2 + 2))" '
+ echo -e 'p\nq' | fdisk -u -C $cyl -H $head -S $sect "$file" | awk -v file="$file$1" -v n="$(($2 + 2))" '
$1 == file {
$1 == file {
-
print $n * 512
+ print $n * 512
}'
}
}'
}
This page took
0.026085 seconds
and
4
git commands to generate.