30
30
INSTALL="install -o root -g root"
34
36
if [ -f /etc/laptop-mode/laptop-mode.conf ] ; then
35
37
echo "Not reinstalling configuration file: /etc/laptop-mode/laptop-mode.conf exists."
36
39
elif ( ! $INSTALL -m 600 etc/laptop-mode/laptop-mode.conf /etc/laptop-mode ) ; then
37
40
echo "$0: Failed to install configuration file in /etc/laptop-mode/laptop-mode.conf. Installation failed."
42
45
echo "Found old configuration file in /etc/default/laptop-mode. Moving to the new location."
43
46
if ( ! mv /etc/default/laptop-mode /etc/laptop-mode/laptop-mode.conf ) ; then
44
47
echo "$0: Failed to move old configuration file to new location."
49
52
echo "Found old configuration file in /etc/sysconfig/laptop-mode. Moving to the new location."
50
53
if ( ! mv /etc/sysconfig/laptop-mode /etc/laptop-mode/laptop-mode.conf ) ; then
51
54
echo "$0: Failed to move old configuration file to new location."