Vendor cgminer source, patch for SHA256, update installer
This commit is contained in:
15
update.sh
15
update.sh
@@ -51,6 +51,21 @@ chown -R $USER:$USER "$TARGET_DIR"
|
||||
echo "=== Aktualisiere Service-Definitionen ==="
|
||||
# Wir schreiben die Services neu, falls sich im Repo die Startlogik geändert hat
|
||||
|
||||
# Optional: Rebuild cgminer if requested
|
||||
if [ "$1" == "--rebuild-miner" ]; then
|
||||
echo "=== Recompiling Miner from Local Source ==="
|
||||
# Reuse logic from install.sh essentially
|
||||
cp -r src/cgminer-gc3355 /tmp/cgminer-build
|
||||
cd /tmp/cgminer-build
|
||||
export CFLAGS="-fcommon -O2"
|
||||
./autogen.sh
|
||||
./configure --enable-gridseed --enable-scrypt --without-curses
|
||||
make -j1
|
||||
make install
|
||||
cd "$TARGET_DIR"
|
||||
rm -rf /tmp/cgminer-build
|
||||
fi
|
||||
|
||||
# GUI Service
|
||||
cat <<EOF > /etc/systemd/system/necrohash-gui.service
|
||||
[Unit]
|
||||
|
||||
Reference in New Issue
Block a user