mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
Merge pull request #654 from omor1/master
alarm/fake-hwclock: Remove extraneous newlines from fake-hwclock.sh.
This commit is contained in:
commit
616af57c5b
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
pkgname=fake-hwclock
|
||||
pkgver=0.1
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Saves time on shutdown and restores it on boot from a file"
|
||||
arch=('arm')
|
||||
license=('GPL')
|
||||
|
@ -13,7 +13,7 @@ install=fake-hwclock.install
|
|||
source=('fake-hwclock.sh'
|
||||
'fake-hwclock.service')
|
||||
|
||||
md5sums=('8264f56630b0ed3299b51a43f3854285'
|
||||
md5sums=('7b320a8e212db58540cdb83c1da585bd'
|
||||
'8a328ff872a092dcdf86088ae2c20fd3')
|
||||
|
||||
package() {
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
MYSELF=$0
|
||||
|
||||
setclock() {
|
||||
echo "Setting hardware clock \n"
|
||||
echo "Setting clock."
|
||||
MYTIME=$(date -r $MYSELF '+%Y-%m-%d %r')
|
||||
date --set="$MYTIME" &>/dev/null
|
||||
}
|
||||
|
||||
saveclock() {
|
||||
echo "Saving current time \n"
|
||||
echo "Saving current time."
|
||||
touch $MYSELF &>/dev/null
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue