File tree 2 files changed +19
-5
lines changed
2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ This simply installs `zenstates.py` from [ZenStates-Linux](https://github.com/r4
10
10
git clone https://github.com/jfredrickson/disable-c6.git
11
11
cd disable-c6
12
12
sudo ./install.sh
13
- systemctl enable disable-c6.service
14
- systemctl start disable-c6.service
15
13
```
16
14
17
15
This will install a systemd unit called ` disable-c6 ` to the default location, ` /opt/disable-c6 ` , and create a symlink in ` /etc/systemd/system ` .
Original file line number Diff line number Diff line change @@ -35,6 +35,22 @@ mkdir -p $SYSTEMD_UNIT_DIR
35
35
sed " s@{{PREFIX}}@$PREFIX @" disable-c6.service.template > $SYSTEMD_UNIT_DIR /disable-c6.service
36
36
install lib/ZenStates-Linux/zenstates.py $PREFIX /bin/zenstates.py
37
37
38
- echo " Installed disable-c6 service. You may want to:"
39
- echo " systemctl enable disable-c6.service"
40
- echo " systemctl start disable-c6.service"
38
+ echo " Installed disable-c6 service."
39
+
40
+ while true ; do
41
+ read -p " Would you like to enable and start the service now [y/n]? " YN
42
+ case $YN in
43
+ [Yy]* )
44
+ systemctl enable disable-c6.service
45
+ systemctl start disable-c6.service
46
+ echo " Enabled disable-c6 service."
47
+ exit 0
48
+ ;;
49
+ [Nn]* )
50
+ echo " To enable and start the service:"
51
+ echo " systemctl enable disable-c6.service"
52
+ echo " systemctl start disable-c6.service"
53
+ exit 0
54
+ ;;
55
+ esac
56
+ done
You can’t perform that action at this time.
0 commit comments