Any new updates? (Christmas Tree is a fire risk!)

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
PDXUser
Posts: 3
Joined: Wed Jun 22, 2016 6:29 am

Any new updates? (Christmas Tree is a fire risk!)

Post by PDXUser »

I know it is like Christmas year round with DietPi and SBC's. :) Any chance of a new update to remove the Tree banner at least or???
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Any new updates? (Christmas Tree is a fire risk!)

Post by k-plan »

PDXUser wrote:Any chance of a new update to remove the Tree banner at least or???
Yes.

https://github.com/Fourdee/DietPi/blob/ ... xt#L11-L12

previously v160 | DietPi v6.0
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
novitibo
Posts: 62
Joined: Mon Feb 29, 2016 5:11 pm

Re: Any new updates? (Christmas Tree is a fire risk!)

Post by novitibo »

will be possible tu use backup from v159?
molnart
Posts: 17
Joined: Sat Apr 15, 2017 12:56 am

Re: Any new updates? (Christmas Tree is a fire risk!)

Post by molnart »

learning point: next time the xmas tree should disappear based on the current date. i would be ok staying on 159 but the xmas tree forces me to upgrade asap
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Any new updates? (Christmas Tree is a fire risk!)

Post by k-plan »

learning point for you: - after you get a free gift, housekeeping is yours! ;)

Code: Select all

### DietPi XMAS tree remover ###
cp /DietPi/dietpi/dietpi-banner /DietPi/dietpi/dietpi-banner.XMAS-tree.bak
wget https://raw.githubusercontent.com/Fourdee/DietPi/521f611a69b9cc41ca7ac1f07ccc18182c5a4eb0/dietpi/dietpi-banner -O /DietPi/dietpi/dietpi-banner
chmod +x /DietPi/dietpi/dietpi-banner
clear
/DietPi/dietpi/login
echo -e '[\e[32m  OK  \e[0m] Backup XMAS tree and housekeeping.\n'
Done!

If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Any new updates? (Christmas Tree is a fire risk!)

Post by Fourdee »

molnart wrote:learning point: next time the xmas tree should disappear based on the current date. i would be ok staying on 159 but the xmas tree forces me to upgrade asap
Hehe, good point, apologies for the constantly upright tree, that remains for infinity :)
We did have to rush the tree this year, to make it for release.

I'll keep the date check in mind for next year. We actually removed the tree code in v6.0 (every little counts), instead of simply disabling it.

@k-plan great fix :) : http://dietpi.com/phpbb/posting.php?mod ... 60#pr10362
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Any new updates? (Christmas Tree is a fire risk!)

Post by k-plan »

Hi Dan,
Fourdee wrote:@k-plan great fix
Thanks. :D

Like this XMAS_TREE_REMOVER_FOR_DIETPI.sh more, but not so easy to providing this here:

Code: Select all

#!/bin/bash

###     DietPi XMAS tree remover    ###
### XMAS_TREE_REMOVER_FOR_DIETPI.sh ###

(( $UID )) && echo -e '[\e[31mFAILED\e[0m] Root privileges required. Please run the command with "sudo".\n' && exit 1
echo -e '[\e[32m  OK  \e[0m] Root privileges verified.\n'

## make a XMAS tree backup
	cp /DietPi/dietpi/dietpi-banner /DietPi/dietpi/dietpi-banner.XMAS-tree.bak
	echo -e '[\e[32m  OK  \e[0m] Backup XMAS tree login.\n'

## without XMAS tree
	wget https://raw.githubusercontent.com/Fourdee/DietPi/521f611a69b9cc41ca7ac1f07ccc18182c5a4eb0/dietpi/dietpi-banner -O /DietPi/dietpi/dietpi-banner

## only to be sure
	chmod +x /DietPi/dietpi/dietpi-banner
	echo -e '[\e[32m  OK  \e[0m] Setting up cleaned login.'
	sleep 1

## good bye and testing
	echo -e '[\e[32m  OK  \e[0m] Will prepare a test now.\n'

	sleep 2
	clear

	echo -e '[\e[32m  OK  \e[0m] Probing new login!'

	sleep 2

	clear

## test
	/DietPi/dietpi/login

#Cleanup
	rm XMAS_TREE_REMOVER_FOR_DIETPI.sh
	
	echo -e '[\e[32mAll done!\e[0m] Thanks for using DietPi.'

exit
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
Post Reply