Skip to content

Commit 3e1dba4

Browse files
committed
fix: lshw downloaded file name
Signed-off-by: nabil salah <nabil.salah203@gmail.com>
1 parent 634ae89 commit 3e1dba4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

packages/lshw.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ download_lshw() {
99
extract_lshw() {
1010
if [ ! -d "lshw-${LSHW_VERSION}" ]; then
1111
echo "[+] extracting: lshw-${LSHW_VERSION}"
12-
tar -xf ${DISTFILES}/lshw-${LSHW_VERSION}.tar.gz -C .
12+
tar -xf ${DISTFILES}/${LSHW_VERSION}.tar.gz -C .
1313
fi
1414
}
1515

@@ -23,14 +23,13 @@ prepare_lshw() {
2323

2424
compile_lshw() {
2525
pushd src
26-
make ${MAKEOPTS}
26+
make
2727
popd
2828
}
2929

3030
install_lshw() {
31-
pushd src
32-
make install
33-
popd
31+
echo "[+] installing lshw to initramfs"
32+
install -D -m 755 src/lshw "${ROOTDIR}/usr/bin/lshw"
3433
}
3534

3635
build_lshw() {

0 commit comments

Comments
 (0)