dkms-install: Don't hardcode parent folder

This commit is contained in:
kimocoder 2019-04-07 18:20:30 +02:00
parent 9e298d0fa3
commit 3fcba157f9

View File

@ -7,11 +7,11 @@ else
echo "About to run dkms install steps..." echo "About to run dkms install steps..."
fi fi
DRV_DIR=rtl8812au DRV_DIR='pwd'
DRV_NAME=rtl8812au DRV_NAME=rtl8812au
DRV_VERSION=5.3.4 DRV_VERSION=5.3.4
cp -r $(pwd) /usr/src/${DRV_NAME}-${DRV_VERSION} cp -r ${DRV_DIR} /usr/src/${DRV_NAME}-${DRV_VERSION}
dkms add -m ${DRV_NAME} -v ${DRV_VERSION} dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
dkms build -m ${DRV_NAME} -v ${DRV_VERSION} dkms build -m ${DRV_NAME} -v ${DRV_VERSION}