K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / apport / package-hooks /
server ip : 104.21.89.46

your ip : 172.70.131.201

H O M E


Filename/usr/share/apport/package-hooks/source_plymouth.py
Size1.26 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified12-Apr-2014 01:20
Last accessed06-Jul-2025 18:37
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
'''apport package hook for plymouth

Copyright 2010 Canonical Ltd.
Authors: Steve Langasek <[email protected]>,
Brian Murray <[email protected]>
'''

from apport.hookutils import *

import os.path


def _attach_file_filtered(report, path, key=None):
'''filter out password from grub configuration'''
if not key:
key = path_to_key(path)

if os.path.exists(path):
with open(path,'r') as f:
filtered = [l if not l.startswith('password')
else '### PASSWORD LINE REMOVED ###'
for l in f.readlines()]
report[key] = ''.join(filtered)


def add_info(report):
attach_hardware(report)
attach_file(report, '/proc/fb', 'ProcFB')
attach_file(report, '/proc/cmdline', 'ProcCmdLine')
attach_file(report, '/var/log/boot.log', 'BootLog')
debug_log = '/var/log/plymouth-debug.log'
if os.path.exists(debug_log):
attach_root_command_outputs(report,
{'PlymouthDebug': 'cat %s' % debug_log})
_attach_file_filtered(report, '/etc/default/grub', 'EtcDefaultGrub')
report['DefaultPlymouth'] = command_output(['readlink', '/etc/alternatives/default.plymouth'])
report['TextPlymouth'] = command_output(['readlink', '/etc/alternatives/text.plymouth'])