diff options
author | James Meyer <james.meyer@operamail.com> | 2010-11-29 19:12:27 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-11-29 19:12:27 (GMT) |
commit | b83ca22d5c05065f7c9e69b93fddc64b46625691 (patch) | |
tree | 799212472e7131bc31b51e1220e022304b44eac9 /abs/core/mythsmolt/smolt_init_login.sh | |
parent | 3ed3714e1cfc09e6b93417a1f28ddf89f73d029d (diff) | |
download | linhes_pkgbuild-b83ca22d5c05065f7c9e69b93fddc64b46625691.zip linhes_pkgbuild-b83ca22d5c05065f7c9e69b93fddc64b46625691.tar.gz linhes_pkgbuild-b83ca22d5c05065f7c9e69b93fddc64b46625691.tar.bz2 |
mythsmolt: updated for .24 myth and python2
Diffstat (limited to 'abs/core/mythsmolt/smolt_init_login.sh')
-rw-r--r-- | abs/core/mythsmolt/smolt_init_login.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/abs/core/mythsmolt/smolt_init_login.sh b/abs/core/mythsmolt/smolt_init_login.sh new file mode 100644 index 0000000..0b76305 --- /dev/null +++ b/abs/core/mythsmolt/smolt_init_login.sh @@ -0,0 +1,39 @@ +if [ $UID = 0 -o $UID = 1000 ] +then + INIT=`ps -p 1 -o comm=` + if [ x$INIT = xrunit ] + then + if [[ -f /home/mythtv/.configure && $- = *i* ]] + then + if [ ! -z "$PS1" ] + then + if [ $0 = "-bash" ] + then + if [ ! -e /home/mythtv/.mythtv/MythSmolt/hw-uuid ] + then + echo "" + echo "####################################################" + echo "It appears you have not yet run smolt" + echo "Please take the time to submit your hardware profile" + echo "" + echo "press any key to continue:" + echo "####################################################" + read a + mkdir -p /home/mythtv/.mythtv/MythSmolt + chown -R mythtv:users /home/mythtv/.mythtv/MythSmolt + + if [ $UID = 0 ] + then + su mythtv -c "/usr/share/mythtv/mythsmolt/scripts/sendProfile.py" && su mythtv -c "touch /home/mythtv/.mythtv/MythSmolt/hw-uuid" + else + /usr/share/mythtv/mythsmolt/scripts/sendProfile.py && touch /home/mythtv/.mythtv/MythSmolt/hw-uuid + fi + fi + fi + fi + fi + fi +fi + + + |