diff --git a/package.json b/package.json index 4ceb12b..1ac134f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "raspberry-ready", "description": "perfectly imperfect", - "version": "1.0.6", + "version": "1.0.7", "author": "Highstrike", "license": "MIT", "repository": "highstrike/raspberry-ready", @@ -16,7 +16,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { - "pigpio": "~3.1.1" + "pigpio": "^3.2.0" }, "devDependencies": { "eslint": "^6.8.0", diff --git a/start.js b/start.js index adb91de..fea9444 100644 --- a/start.js +++ b/start.js @@ -77,7 +77,7 @@ button.on('alert', (level) => { } if (level === 1) { - exec('sudo sleep 1 && /sbin/shutdown -h now'); + exec(`echo 'true' > /shutdown_signal`); process.exit(); } });