• Reorganized the scripts into different categories
• Refactored the graphical boot screens to have separate boot and shutdown images • Changed the reboot and shutdown code to force the display of the splash images. • Added 'Team Onefinity.ngc' to the installer files
This commit is contained in:
@@ -21,11 +21,17 @@ def call_get_output(cmd):
|
||||
|
||||
class RebootHandler(bbctrl.APIHandler):
|
||||
def put_ok(self):
|
||||
subprocess.Popen('reboot')
|
||||
subprocess.Popen(['plymouth', 'show-splash'])
|
||||
subprocess.Popen(['plymouth', 'change-mode', '--shutdown'])
|
||||
subprocess.Popen(['killall', 'xinit'])
|
||||
subprocess.Popen(['reboot'])
|
||||
|
||||
|
||||
class ShutdownHandler(bbctrl.APIHandler):
|
||||
def put_ok(self):
|
||||
subprocess.Popen(['plymouth', 'show-splash'])
|
||||
subprocess.Popen(['plymouth', 'change-mode', '--shutdown'])
|
||||
subprocess.Popen(['killall', 'xinit'])
|
||||
subprocess.Popen(['shutdown', '-h', 'now'])
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[Plymouth Theme]
|
||||
Name=buildbotics
|
||||
Description=Buildbotics boot splash
|
||||
ModuleName=script
|
||||
|
||||
[script]
|
||||
ImageDir=/usr/share/plymouth/themes/buildbotics
|
||||
ScriptFile=/usr/share/plymouth/themes/buildbotics/buildbotics.script
|
||||
@@ -1,32 +0,0 @@
|
||||
screenW = Window.GetWidth();
|
||||
screenH = Window.GetHeight();
|
||||
|
||||
image = Image("splash.png");
|
||||
imageW = image.GetWidth();
|
||||
imageH = image.GetHeight();
|
||||
|
||||
scaleX = imageW / screenW;
|
||||
scaleY = imageH / screenH;
|
||||
|
||||
flag = 1;
|
||||
|
||||
if (scaleX > 1 || scaleY > 1) {
|
||||
if (scaleX > scaleY) {
|
||||
resized = image.Scale(screenW, imageH / scaleX);
|
||||
imageX = 0;
|
||||
imageY = (screenH - ((imageH * screenW) / imageW)) / 2;
|
||||
|
||||
} else {
|
||||
resized = image.Scale(imageW / scaleY, screenH);
|
||||
imageX = (screenW - ((imageW * screenH) / imageH)) / 2;
|
||||
imageY = 0;
|
||||
}
|
||||
|
||||
} else {
|
||||
resized = image.Scale(imageW, imageH);
|
||||
imageX = (screenW - imageW) / 2;
|
||||
imageY = (screenH - imageH) / 2;
|
||||
}
|
||||
|
||||
sprite = Sprite(resized);
|
||||
sprite.SetPosition(imageX, imageY, -100);
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 41 KiB |
Reference in New Issue
Block a user