-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathchip.sh
More file actions
22 lines (17 loc) · 688 Bytes
/
chip.sh
File metadata and controls
22 lines (17 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (c) 2016 Joseph D Poirier
# Distributable under the terms of The New BSD License
# that can be found in the LICENSE file.
echo "${MAGENTA}"
echo "************************************"
echo "********* CHIP setup... **********"
echo "************************************"
echo "${WHITE}"
##############################################################
## Setup power management script
##############################################################
echo
echo "${YELLOW}setup power management service...${WHITE}"
chmod 755 ${SCRIPTDIR}/chip-power.sh
cp ${SCRIPTDIR}/chip-power.sh /etc/init.d/chip-power.sh
update-rc.d chip-power.sh defaults 100
echo "${GREEN}...done${WHITE}"