Skip to content

Commit

Permalink
Copy config if local config is newer
Browse files Browse the repository at this point in the history
During installs, the config file may not be copied even if it was
changed.  Now, it does a file newer than check instead of just an
existance check.
  • Loading branch information
chall8908 committed Jan 17, 2017
1 parent 0742c8b commit 0749d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ chmod 755 /usr/sbin/omnia-led-colors
cp omnia-led-colors.init.d /etc/init.d/omnia-led-colors
chmod 755 /etc/init.d/omnia-led-colors

[ -f /etc/config/omnia-led-colors ] || cp omnia-led-colors.config /etc/config/omnia-led-colors
[ /etc/config/omnia-led-colors -nt omnia-led-colors.config ] || cp omnia-led-colors.config /etc/config/omnia-led-colors

/etc/init.d/omnia-led-colors enable
/etc/init.d/omnia-led-colors start

0 comments on commit 0749d99

Please sign in to comment.