mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
Remove innuendo from fake-hwclock
This commit is contained in:
parent
ea0e4837e7
commit
5694883419
1 changed files with 4 additions and 4 deletions
|
@ -1,16 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
MYSELF=$0
|
||||
THISFILE=$0
|
||||
|
||||
setclock() {
|
||||
echo "Setting clock."
|
||||
MYTIME=$(date -r $MYSELF '+%Y-%m-%d %r')
|
||||
MYTIME=$(date -r $THISFILE '+%Y-%m-%d %r')
|
||||
date --set="$MYTIME" &>/dev/null
|
||||
}
|
||||
|
||||
saveclock() {
|
||||
echo "Saving current time."
|
||||
touch $MYSELF &>/dev/null
|
||||
touch $THISFILE &>/dev/null
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
@ -21,7 +21,7 @@ case "$1" in
|
|||
saveclock
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $MYSELF {set|save}"
|
||||
echo "Usage: $THISFILE {set|save}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue