Contents of /trunk/mkinitrd-magellan/busybox/scripts/trylink
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (17 years ago) by niro
File size: 324 byte(s)
Sat Sep 1 22:45:15 2007 UTC (17 years ago) by niro
File size: 324 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | #!/bin/sh |
2 | |
3 | debug=false |
4 | |
5 | function try { |
6 | added="$1" |
7 | shift |
8 | $debug && echo "Trying: $* $added" |
9 | "$@" $added >/dev/null 2>&1 \ |
10 | && exit 0 |
11 | } |
12 | |
13 | try "" "$@" |
14 | try "-lm" "$@" |
15 | try "-lcrypt" "$@" |
16 | try "-Wl,--start-group -lcrypt -lm -Wl,--end-group" "$@" |
17 | # It failed. Rerun & let people see the error messages |
18 | "$@" $added |
Properties
Name | Value |
---|---|
svn:executable | * |